Reading/Writing from a "text" file

As the title says, I am attempting to write a program that does this for a specific set of files. The problem is that these files are not basic text files. Well they are, but the text therein is "formatted to look like...

Item := Value
Item := Value

Item := Value
Item := Value

These files contain Multiple sets of items, but the only separator between them is the space. So these are Data text files (hopefully that is the right word).

I am just looking at where to start loading this data. I need to load just the value, but also need to save the file WITH the items. I am thinking that I need to set the defaults in an array or structure, and have it load into that. But I just want clarification that I am going about this the right way. Plus an example to go off of, as my internet searchs have only told me how to read lines in a text file, not how to work with them. (Can you tell that I am a beginner, or what;) )
Here is a start

http://www.cplusplus.com/doc/tutorial/files/

I would read through that first and maybe it will help you out a little. Then come back here if it didnt help
Topic archived. No new replies allowed.