What is the most efficient way to read a text file big back, line by line, using the Windows API functions ? For example, if the file:
line 1
...
line 108777
line 108778
the conclusion should be:
line 108778
line 108777
...
line 1
I want to write a C program for this. You don’t need to write code (but if you want, which is great), I’m just wondering how to do this, bearing in mind that the files are large and that I want the program to work as fast as it can.
Also, I'm interested in what features of the Windows API to use.
source
share