Hi all!
I have a problem whith the i/o streaming in c++ (turbo c++ 3.1)how can i delete a string inside a file and dont let the space of the string empty?
thanks
Hi all!
I have a problem whith the i/o streaming in c++ (turbo c++ 3.1)how can i delete a string inside a file and dont let the space of the string empty?
thanks
you can either replace the string in file with a sequence of nonsensical material---say all asterisks--- or write the contents of the file to your program, do the deletion within the program, and then write the modified file contents back to file. If the string were part of a struct/class that also had a flag you could just change the flag to indicate that a given string should be ignored.
thanks elad