[try Beta version]
Not logged in

 
A fstream MODE FLAG USE to delete

May 22, 2019 at 7:55am
Does anyone know what mode do i use if i want to delete a specific data in a txtfile in the fstream
May 22, 2019 at 8:30am
There is no such mode flag. Either the whole content is deleted or nothing.

For deleting a specific part you need to reed the content, modify it, and write it back.
May 22, 2019 at 9:53am
how to modify it?
May 23, 2019 at 1:35am
paint it green.
May 23, 2019 at 2:05am
Give a specific example.
What exactly is the structure of your file?
What exactly do you want to remove from it?
Topic archived. No new replies allowed.