How to overwrite a text file in Qt C++?

All kind time of day. Need advice. There's a text file, you need to remove the line. On the web I read that this can be done using rewrite, but how to do it I found. Note that the file size can be larger than the RAM.
My version: I Create the second file. And using terms written in rows that must not be removed. Is it right? Or is there a way to implement with one file? I would like to hear other ways, apart from being overwritten. Thank you.
April 19th 20 at 12:18
1 answer
April 19th 20 at 12:20
It all depends on what you do with this file going to do. for example, directly in the source file, the symbols unnecessary rows to replace the gaps. and no data and the file where it is.

Find more questions by tags Qt