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 :
![Screenshot from 2019-08-12 11-36-25.png](https://groups.google.com/a/dartlang.org/group/core-dev/attach/47e141a54569f/Screenshot%20from%202019-08-12%2011-36-25.png?part=0.1&view=1)
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 :)