SyntaxFix
Write A Post
Hire A Developer
Questions
You may not find this in any book or site but I found out that it works pretty well:
ifstream ifs ("filename.txt"); string s; getline (ifs, s, (char) ifs.eof());