Quote:
Originally Posted by eyal282
I want to delete lines by overwriting and if I start from end, it's done easier without annoying calculations.
|
Just read from the start, write lines that you want to a new file and skip writing those that you want to be deleted. Delete original file and rename new file to old filename.
__________________