well one way to check for it is just to read the file line by line by line and check for null.
for instance if you are loading a line of your file into a string called testThis,
just use the loop
while(testThis != null)
do what you want to do here.;
I usually just do it the same as in C and write
and then write the method atEOF()
public boolean atEOF()
if(this.getData = null)
I'm surprised more of you people don't get hit by cars.