I'm just a beginner, so not sure if this is valid advice, but building on what Peter87 said, if you use
1 2
nFile >> number;
[code]
[/code]
You will begin to extract some characters from the text in that file. But I think if you put that in a for loop
1 2 3 4 5 6 7
string str
for (int i = 0; i < nfile.end(); i++)
nfile >> str;
I am not sure about the nfile.end(), I cannot recall what the condition or syntax is for the end character. For that you'll have to do some research.
Then you can store the extracted information as a string. Then you will need to use another for loop to extract the characters you want from the string, maybe with the use of if-else conditions.
Also, from reading my old textbook, you could use the getline(fileObject, strObj, termChar) command to extract the chars into a string until the file being read reaches a terminating character.