A fstream MODE FLAG USE to delete

Does anyone know what mode do i use if i want to delete a specific data in a txtfile in the fstream
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.
how to modify it?
paint it green.
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.