You should be able to write the following:while(!line.EOF())
{
line = f.ReadLine();
}
I'm not familiar with JavaScript, but this works in almost every other programming language out there. The read should return false when it hits the end of file.Code:while(line = f.ReadLine()) { ...Do Stuff... }




Reply With Quote