CachedCsvReader Constructor (TextReader, Boolean, Char, Int32)

Initializes a new instance of the CsvReader class.

Namespace:  LumenWorks.Framework.IO.Csv
Assembly:  LumenWorks.Framework.IO (in LumenWorks.Framework.IO.dll)

Syntax


public CachedCsvReader(
	TextReader reader,
	bool hasHeaders,
	char delimiter,
	int bufferSize
)
Public Sub New ( _
	reader As TextReader, _
	hasHeaders As Boolean, _
	delimiter As Char, _
	bufferSize As Integer _
)
public:
CachedCsvReader(
	TextReader^ reader, 
	bool^ hasHeaders, 
	wchar_t^ delimiter, 
	int^ bufferSize
)

Parameters

reader
Type: TextReader
A TextReader pointing to the CSV file.
hasHeaders
Type: Boolean
trueTruetruetrue (True in Visual Basic) if field names are located on the first non commented line, otherwise, falseFalsefalsefalse (False in Visual Basic).
delimiter
Type: Char
The delimiter character separating each field (default is ',').
bufferSize
Type: Int32
The buffer size in bytes.

Exceptions


ExceptionCondition
ArgumentNullExceptionreader is a nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentException Cannot read from reader.