readLCsv function

Future<Table> readLCsv(
  1. String path, {
  2. Encoding encoding = utf8,
  3. String fieldSep = ',',
  4. String textSep = '"',
  5. bool multiline = true,
  6. int headerRow = 0,
})

Reads file at specified path path as TSV file

Implementation

Future<Table> readLCsv(String path,
    {Encoding encoding = utf8,
    String fieldSep = ',',
    String textSep = '"',
    bool multiline = true,
    int headerRow = 0}) async {
  final File file = File(path);
  if (!await file.exists()) throw Exception('File not found!');
  return parseLCsv(await file.readAsString(encoding: encoding),
      fieldSep: fieldSep, textSep: textSep, multiline: multiline);
}