flutter read text file line by line code example
Example: dart read file line by line
import 'dart:async';
import 'dart:io';
import 'dart:convert';
main() {
var path = ...;
new File(path)
.openRead()
.map(utf8.decode)
.transform(new LineSplitter())
.forEach((l) => print('line: $l'));
}