In a text file unless it has very specific other characteristics (such as fixed-width fields, etc.), the answer is generally "no".
In a specific case such as this as it is known a priori to be the last line/record, you may be able to "cheat" and use fseek to get a location in the file some number of bytes prior to the end as determined by the OS and subsequently parse a line. But, more often than not, the effort in writing and debugging such an approach isn't worth the effort of the brute force technique. I'd say it's only worth it in one of two cases --
a) This specific file structure is to be read for this specific value a very high number of times, or
b) the file really is so large as to make the reading impractical. So, just how big is "very large"? Any more, memory is pretty much not an issue most of the time.
ADDENDUM If you were really interested in pursuing this, would need specifics on the file layout and what is needed to be read.