1

I have a relatively big .csv file and tried readAsLines and readAsLinesSync methods. But these methods reads the entire file. What I really need is a method which skips N lines and returns specified number of lines without wasting too much system resources.

The main reason for this request is that a) the file might be updated after the initial read and b) save some system resources.

  • Does this answer your question? [Reading file line by line in dart](https://stackoverflow.com/questions/21813401/reading-file-line-by-line-in-dart) – Kevin Mar 30 '22 at 12:11
  • Hey @Kevin unfortunately no. https://api.dart.dev/stable/2.16.2/dart-io/File/openRead.html It loads the entire document if start and end is not specified. The memory usage increased as much as the file, which is undesirable but if there's no other way I'll stick to this solution. – Mirza Atlı Mar 30 '22 at 12:20

0 Answers0