I have a huge file but I only want to read the last line and store the different fields in that last line in some variables. Is there any efficient way to do this? Thanks.
Printable View
I have a huge file but I only want to read the last line and store the different fields in that last line in some variables. Is there any efficient way to do this? Thanks.
while(fgets(buff, 200, fp));
Just uses the same buffer for each call....
Thanks. That worked.