CsvReader(String, Char, Encoding, Boolean, CsvOpts) Constructor
Namespace: FolkerKinzel.CsvToolsAssembly: FolkerKinzel.CsvTools (in FolkerKinzel.CsvTools.dll) Version: 2.0.1+2345335399184346d9b2cc992ed5c814406052c1
public CsvReader(
string filePath,
char delimiter = ',',
Encoding? textEncoding = null,
bool isHeaderPresent = true,
CsvOpts options = CsvOpts.Default
)
Public Sub New (
filePath As String,
Optional delimiter As Char = ","C,
Optional textEncoding As Encoding = Nothing,
Optional isHeaderPresent As Boolean = true,
Optional options As CsvOpts = CsvOpts.Default
)
public:
CsvReader(
String^ filePath,
wchar_t delimiter = L',',
Encoding^ textEncoding = nullptr,
bool isHeaderPresent = true,
CsvOpts options = CsvOpts::Default
)
new :
filePath : string *
?delimiter : char *
?textEncoding : Encoding *
?isHeaderPresent : bool *
?options : CsvOpts
(* Defaults:
let _delimiter = defaultArg delimiter ','
let _textEncoding = defaultArg textEncoding null
let _isHeaderPresent = defaultArg isHeaderPresent true
let _options = defaultArg options CsvOpts.Default
*)
-> CsvReader
Parameters
- filePath String
- File path of the CSV file.
- delimiter Char (Optional)
- The field separator character.
- textEncoding Encoding (Optional)
- The text encoding to be used to read the CSV file or null for
UTF8.
- isHeaderPresent Boolean (Optional)
- true, to interpret the first line as a header, otherwise
false.
- options CsvOpts (Optional)
- Options for reading the CSV file.