Delete a line in text file
Hello, I'm using a text file and I work it with QTextStream.
how can I delete a line from the file without delete all of it?
What to you mean by "without delete all of it" ?
You cannot delete a line as such.
You can either copy all lines except the unwanted to new file OR
You can load the file to a buffer, remove the line from it and write it back.
thank. That's what I thought