dxFeed .Net API
7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Writes data to the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification. More...
Writes data to the stream using Comma-Separated Values (CSV) format. See RFC 4180 for CSV format specification.
This writer supports records with arbitrary (variable) number of fields, multiline fields, custom separator and quote characters. It uses CRLF sequence to separate records.
This writer does not provide buffering of any sort and does not perform encoding. The correct way to efficiently write CSV file with UTF-8 encoding is as follows:
CSVWriter writer = new CSVWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8))); writer.writeRecord(header); writer.writeAll(records); writer.close();