Removed unnecessary fstream::good() calls