CsvReaderRead Method

Returns the next CsvRecord in the CSV file or null if the file has been read completely.

Definition

Namespace: FolkerKinzel.CsvTools
Assembly: FolkerKinzel.CsvTools (in FolkerKinzel.CsvTools.dll) Version: 2.0.2+e1e095fbd3614788c84dad3204b1e88c20f89802
C#
public CsvRecord? Read()

Return Value

CsvRecord
The next CsvRecord in the CSV file or null if the file has been read completely.

Exceptions

ObjectDisposedExceptionThe CSV file was already closed.
IOExceptionI/O error.
CsvFormatExceptionInvalid CSV file. The interpretation depends on the CsvOpts value, specified in the constructor.

See Also