What is the most efficient way to read a big text file backwards, line by line, using Windows API functions? For example, if a file is:
line 1
...
line 108777
line 108778
the output should be:
line 108778
line 108777
...
line 1
I want to write a C program for this. You don't need to write a code (but if you want, that's great), I am just interested in how to do this having in mind that files are big and that I want program to run as fast as it can.
Also, I am interested in which Windows API functions to use.