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.1+2345335399184346d9b2cc992ed5c814406052c1
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