I'm trying to delete the contents of a text file till I find a specific string. This was one of the ways I thought was possible.
My doubt is, when you move the pointer to the specific position, what happens to the rest of the data before the pointer? Is it deleted or does it still remain in the memory?