Open seligam opened 8 years ago
hi
for my experiments I already added it like this (additional constructor)
public CsvDataReader(string fileName, string separator, string[] columns) { if (!File.Exists(fileName)) throw new FileNotFoundException(); _stream = new StreamReader(fileName); _headers = columns; if (separator == "|") separator = "\\" + separator; _CsvRegex = new Regex(separator+"(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))", RegexOptions.Compiled); }
hi
for my experiments I already added it like this (additional constructor)