CsvFile.writeRows

CsvResult!bool writeRows(R)(R rows)

Write a sequence of rows to the file using a CsvWriter under the hood.

This convenience accepts any input range whose element type is accepted by CsvWriter.writeRow (e.g., string[], FieldView[], RowView, Tuple, user struct, or heterogeneous AliasSeq). The file is opened on demand, and the writer is flushed at the end. The file remains open.

Errors:

  • INVALID_DIALECT when the dialect is invalid.
  • INVALID_MODE when called with mode == CsvOpenMode.READ.
  • IO_FAILURE on open/write/flush failures.
  • Propagates writer errors such as INVALID_ESCAPE.