www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/20/00:58:34

Date: Sat, 20 Jul 1996 06:18:44 +0000 ( )
From: Gurunandan R Bhat <grbhat AT unigoa DOT ernet DOT in>
To: djgpp AT delorie DOT com
Subject: help: problem with reading files
Message-Id: <Pine.LNX.3.91.960720055550.2102A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019