TalosBlack
Programmer
I am trying to search a text file for a given string. After i do that search i would like to search it for another string. I was wondering how i can start searching at the begining of the text file. I thought i should use seekg(0) and i made a practice program that does just that. ( I am using while(!in.eof()) {in.getline} to pull the data in and in.seekg(0) to try to start at the begining of the file.) It seems to work. However, when i tried to add that into my more complicated program it doens't seem to be working. Any idea of what i'm doing wrong ?
Thanks,
John
Thanks,
John