- Read you first file line by line (you can use a
- For each line, write it to the output file (you can use a
- Also store the line in a
- Read your second file line by line.
- For each line, check if the line is in the
- If it’s not, write it to the output file.
- Close your files.