i have a realy easy q:
I have an ascii file. I need to read the last line in the file (I don't know how long is that line, or any other line in the file for that matter).
after reading the line, I need to see if it's the same as my indicator (9999). the line must contain only that indicator. if not - I need to go to the prev line and do the check again, until I'll find a line that contains only 9999 or I've reached the begining of the file.
the reason for going backwords is because the file can contain several (can be a lot of) lines with my indicator, and I need to find the last line.
kdf jgsg hjghjgf qkudh
when I find the last line that contains the indicator - I need to set up a file pointer to point to the line after (from there I should start writing something new).
hope to get some help