My program is reading the last line of data from an infile twice. When I execute the program, the last line of data is being displayed twice. Please Help!
Erica
0
Newbie Poster
Recommended Answers
Jump to Post>My program is reading the last line of data from an infile twice.
I'll bet my next paycheck that your file processing loop looks like this:while ( !feof ( in ) ) { /* Read from the file and process */ }
Or this:
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.