Date: Sat, 20 Jul 1996 06:18:44 +0000 ( ) From: Gurunandan R Bhat To: djgpp AT delorie DOT com Subject: help: problem with reading files Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII hello, i need help with a problem i have with reading files created by ms-dos edit in djgpp v2. the relevant part of my c++ code is: ofstream fin(datafile); while (!fin.eof()) fin >> x1 >> x2; on i execution i find that the last line is read twice. is there some way i can avoid this problem? thanks gurunandan bhat dept. of physics goa university goa 403205, india