Well what I would do is have a loop to read a line in from file, have a nested loop to tokenize the line using strtok(string.h header)with a delimiter of whitespace. check the token for one of the words that you wish to delete. If it is not a word that you wish to delete save to your new file(with append option), if it is a word that you wish to delete continue through the loop to the next token.
|