P
P
parkito2015-09-14 21:17:51
Programming
parkito, 2015-09-14 21:17:51

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

1 answer(s)
A
Armenian Radio, 2015-09-14
@gbg

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 question

Ask a Question

731 491 924 answers to any question