Modifying how EOF is checked in Chrome and Firefox

Removed "Classic Anti-Pattern" according to http://stackoverflow.com/questions/3608706/using-getline-when-reading-from-a-textfile