I want to search a txt file, when I find the word,i looking for; how can i go back in file, to search again ??
i close file, and open it agian, to do this,but it doesn't work.
I can, but it have several factors, that it can't be understood if i don't post all of it.
and code is too long.
i want to search it, and then, write some charachtre on it, but couse i use loops , i can't close file with " ios::in " mode , and open it with another mode (ios::out),
how can i swich between these, and get back, at first line for search again
i am begginer in this, so can u explain more
"it's my Qestion : a programm for : 1.get information about students,and save them in a txt file
2. delete information ( input charchtre "#" infront of line that we want to delete)
3.search in file
i don't want to use string for this,and search in string, i want ot search file, and add # in file, not to the string;