I am making a program that keeps track of files. It does this by writing the name of the file into "filelist.txt" and then when I need to read the list I just scan the file and print out the names. My problem is that when I delete a file I also need to delete that listing in filelist.txt and I do not know how to do this. Any help would be appreciated. Thank you in advance.