Jul-09-2022, 06:00 PM
The best way to do this is:
- Copy the lines of the original file to a temporary file, but don't copy the lines you do not want.
- If no errors occurred: remove the original file.
- Rename the temporary file to the name of the original file.