private static char GetDelimiter(string filePath) { char delimiter = '\0'; var rowCount = System.IO.File.ReadAllLines(filePath).Length; using (var reader = new StreamReader(filePath)) delimiter = CSVHelper.DetectDelimiter(reader, rowCount); return(delimiter); }