OK, when you are reading in from a file you do not use cin. Instead you use the fstream variable name. So using your code:
I hope this helps.Code:fstream filestr; filestr >> ws;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Open File and ReadThreaded View
|
Click Here to Expand Forum to Full Width |