Hi,
I have just started looking at C++ and need help with the following program.
I am trying to write a program where a user enters there name and other details. The program then checks a text file to see if the user already exists, if so removes the 'old' details from the file and re-inserts the new data.
However, I am having problems finding out how to search for a specific string within a file. I am currently using 'Teach Yourself C++ in 21 Days', but it does not seem to go into that much depth for string searches.
Can anyone please advise how I might search for a string in a file, baring in mind that I am a begineer to this head-ache language.
Cheers,
Al