You can't delete characters from the middle of text files.
You can either replace it with something, by overwriting that tab character in the file with something else, or you can copy the entire file, leaving out that tab character, into a new file, then delete the old one, then rename the new one to the same name the old one used to have.
the 'file' have the last position on file. using '<<' operator we add more text. but we can change to the last position and then use the '<<' operator. how we can change to the last position on file?
For file streams opened in text mode, the same restrictions apply: the only valid values for the position to seek to are zero and an earlier value returned by a successful call to tellg
but i get the point and now i understand it.
ok... these code have anotherthing: if i change the 'if's' to before the 'for' loop, i avoid the position changing... is what i have changed on my code.
thank you so much for all to all