•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 428,202 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,231 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 531 | Replies: 3 | Solved
•
•
Join Date: Feb 2008
Posts: 513
Reputation:
Rep Power: 2
Solved Threads: 1
If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ?
ifstream File("C:\\File1\\");
std::string Line;
while( getline(File, Line, ',') )
{
if ( ? ) // end of file ?
{
}
} •
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Reading txt file into Hash Table (C++)
- How to find End of file (C++)
- Getting all data from an input and output file (C++)
- While loop not ending when reading from file (C++)
- Help with comparing user input to a text file! (C++)
- A question about file streaming (C++)
- C++: ifstream file pointer not getting reset (C++)
- reading from file into array (C++)
- Help Reading Info in Text File Into an Array (C++)
Other Threads in the C++ Forum
- Previous Thread: importance of dllexport location in program
- Next Thread: very short code question plz help



Threaded Mode