Answer the question
In order to leave comments, you need to log in
How to remove a line from a file?
Hello. Please help me solve the problem:
I need to delete a line from a text file. When deleting, the bottom lines move up (something that can be easily organized in notepad by hand).
The file is very large, so reading it to RAM or copying it to another is not suitable.
Answer the question
In order to leave comments, you need to log in
Alas, deleting a line from a text file is possible only in such a terrible way, because all subsequent bytes must be shifted by the length of the line.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question