We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add StreamTransformer suport
import 'dart:convert'; import 'dart:io'; import 'package:csv/csv.dart'; import 'package:enough_convert/enough_convert.dart'; void main(List<String> args) async { final input = new File( 'C:/MyDartProjects/notifis/notifis_backend/db/planilhas/CIP 2012.csv') .openRead(); final codec = const Windows1252Codec(allowInvalid: false); final stream = await input.transform(codec).transform(LineSplitter()); await for (var lineString in stream) { var rowsAsListOfValues = CsvToListConverter(fieldDelimiter: ';').convert(lineString); var lineCsv = rowsAsListOfValues.first; print(lineCsv.map((e) => '$e').join(' | ')); } exit(0); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
add StreamTransformer suport
The text was updated successfully, but these errors were encountered: