readLines function
Uses a utf8.decoder and LineSplitter to read the files contents
line by line via a stream.
Implementation
Stream<String> readLines(File file) {
return file
.openRead()
.transform(utf8.decoder)
.transform(const LineSplitter());
}