Delete A line In An ASCII File

Do you know what is on the lines you want to delete? Or Will it always be data on the same line that you want to delete.

The method would be, read the file, output to new file, replace old file with new file.

Between the read and the output you remove the line(s) you don't want, how you do this is really dependent upon the question above... unless for reasons I can't fathom you feel like deleting random lines of text from the file.

To remove a line of text where you know what the line says, I guess the method would be to use a loop to read a line into a string, then output it to the output file within an if statement using strncmp, if the strings match, have the if statement stop the output before you write to the new file.