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:

  • invalidDialect when called with mode == read.
  • ioFailure on open failure.
  • Propagates writer errors (e.g., invalidEscape).