C++ newbie: how to extract data from a text file?

Antst

New member
Joined
Jul 29, 2010
Messages
24
Reaction score
0
Points
1
Hi everyone:

I have text files that contain a lot of data. I know how to read in an entire file, but not how to extract only some of the data from the file. I would really appreciate it if someone could help, perhaps with a short example.

I want to write a function that extracts strings (the names of people, for example). The text file is the output from a calculation and the names will change for each calculation.

Thanks a lot for any help.
 
Back
Top