how to move to the second line in C++ .txt file reading?
Managed C++/CLI
2
Posts
2
Posters
0
Views
1
Watching
-
if I have three words in there lines in a .txt file, and I want to read them to three string, how to do this using c++ ifstream? how to read every line(word)?
-
if I have three words in there lines in a .txt file, and I want to read them to three string, how to do this using c++ ifstream? how to read every line(word)?
Use getline. And, next time, ask in the right forum :-) This is the C++/CLI forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog