Jady Arewar (arewar) wrote in ncommunity,
Jady Arewar

Delete Data from .txt file.

I took Programming 101 this semester, so I'm very n00b. I'm working on creating a project for myself with what I learned, but I just realized I need something that we didn't learn in the class.

I have a .txt file with a bunch of data in it. I want to search through this data file, find some data, and be able to edit and/or delete it.

I have the search code and everything working, but how do I delete data from a textfile? Also, is there a way I can overwrite a record with changes, or do I need to delete the record and resave with the changes?

  • Post a new comment


    default userpic

    Your IP address will be recorded 

  • 1 comment