This should read the file in chunks:
import 'dart:async';
import 'dart:io';
import 'dart:convert';
main() {
var path = ...;
new File(path)
.openRead()
.transform(UTF8.decoder)
.transform(new LineSplitter())
.forEach((l) => print('line: $l'));
}
There is little documentation about this yet. Perhaps register a bug requesting more documents.
source
share