cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
deleting a line from a text file
deleting a line from a text file
Oct 12, 2010 at 5:59pm UTC
quirkyusername
(792)
Is it possible to directly erase a single line from a text file, rather than having to rewrite the whole file omitting that line?
Oct 12, 2010 at 6:03pm UTC
firedraco
(6247)
No.
Oct 12, 2010 at 6:11pm UTC
PanGalactic
(1658)
Partially. You can rewrite just the portion of the file that occurs after the deletion.
Topic archived. No new replies allowed.