Monday, May 24, 2010

Reading text files in C++?

How can you read text and integers from a file in C++ and store them as strings and varibles for use in the program. The text file formated like string, string, string, int, int, int, int over serveral lines like below.





Word1 Word2 Word3 Int Int Int


Word1 Word2 Word3 Int Int Int





and so on...

Reading text files in C++?
fscanf()? http://www.cplusplus.com/reference/clibr...


No comments:

Post a Comment