in reply to Re^4: Remove a Line
in thread Remove a Line

What file? You're opening two files, both are "data" files, do you mean the input file?

Your program opens an input file for reading

opens an output file for writing

writes stuff to output file

It doesn't modify input file

Do you want to modify the original file, do you want to rename outputfile to inputfile?