Last day I was using File.openRead() method from dart:io for reading a ASCII text file as stream, from a certain start position to end position.
Dart Code was like :
import 'dart:io';
import 'dart:convert' show utf8;
main() {
File('./test.txt').openRead(0, 9).transform(utf8.decoder).listen(
(elem) => print(elem),
);
}
ASCII Text file I was reading as stream :
This is just a test file.
Result I got in console :

I expected it to give me a output like below
If I'm making a mistake, would you mind putting me in correct path ?
Thanks :)