Method | Description | |
---|---|---|
CsvFileReader ( Stream stream, EmptyLineBehavior emptyLineBehavior = EmptyLineBehavior.NoColumns ) : System |
Initializes a new instance of the CsvFileReader class for the specified stream.
|
|
CsvFileReader ( |
Initializes a new instance of the CsvFileReader class for the specified stream.
|
|
CsvFileReader ( string path, EmptyLineBehavior emptyLineBehavior = EmptyLineBehavior.NoColumns ) : System |
Initializes a new instance of the CsvFileReader class for the specified file path.
|
|
Dispose ( ) : void | ||
ReadAll ( string path,
|
||
ReadAll ( List |
||
ReadRow ( List |
Reads a row of columns from the current CSV file. Returns false if no more data could be read because the end of the file was reached.
|
Method | Description | |
---|---|---|
ReadQuotedColumn ( ) : string |
Reads a quoted column by reading from the current line until a closing quote is found or the end of the file is reached. On return, the current position points to the delimiter or the end of the last line in the file. Note: CurrLine may be set to null on return.
|
|
ReadUnquotedColumn ( ) : string |
Reads an unquoted column by reading from the current line until a delimiter is found or the end of the line is reached. On return, the current position points to the delimiter or the end of the current line.
|
public CsvFileReader ( Stream stream, EmptyLineBehavior emptyLineBehavior = EmptyLineBehavior.NoColumns ) : System | ||
stream | Stream | The stream to read from |
emptyLineBehavior | EmptyLineBehavior | Determines how empty lines are handled |
return | System |
public CsvFileReader ( |
||
reader | ||
emptyLineBehavior | EmptyLineBehavior | Determines how empty lines are handled |
return | System |
public CsvFileReader ( string path, EmptyLineBehavior emptyLineBehavior = EmptyLineBehavior.NoColumns ) : System | ||
path | string | The name of the CSV file to read from |
emptyLineBehavior | EmptyLineBehavior | Determines how empty lines are handled |
return | System |
public static ReadAll ( string path,
|
||
path | string | |
encoding | ||
return | List
|
public ReadRow ( List |
||
columns | List |
Collection to hold the columns read |
return | bool |