delete a string in the file

I'm trying to write a program that can ask user to enter a string and then search for that string, delete the string and redisplay the data with the string deleted, or a message indicating that the string was not found.

so far i can display the file on the screen, but have no idea how to delete the string in the file and redisplayed the data with the string deleted

Can anyone show me the sample or source code that give me some ideas how to do it?

thanks


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories