I couldn't find a better way to word the question but here is what I would like to do. I am using the RandomAccessFile class to do various things with an input file.
I would like to check to make sure the next line file is not null before attempting to store the line.
So I use the code:
while (raf.readLine() ! = null)
{
//Do things with that line
}
But once I call raf.readLine() in the while loop I iterate to the next line without actually storing the line. Is there I way I can store the line that way read in the while loop?