From: "Minoff" Newsgroups: comp.os.msdos.djgpp Subject: problem reading file Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: Date: Tue, 14 Nov 2000 20:07:34 GMT NNTP-Posting-Host: 12.87.55.195 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 974232454 12.87.55.195 (Tue, 14 Nov 2000 20:07:34 GMT) NNTP-Posting-Date: Tue, 14 Nov 2000 20:07:34 GMT Organization: AT&T Worldnet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sorry about the double post. Kind of new to this. I'm trying to get this dos app to open and display an already existing .dat file using C++. The file resides in the same folder as the .cpp files. Here is the code I am working with: # include # include void main () { ifstream File; File.open("transactions.dat",ios::in); if (!File.fail()) { File>> ; while (!File.eof()) } File.close (); } Anyone know what I need to add to display the data that is in the .dat file? Thanks.