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
write in specific line in c++
write in specific line in c++
Jun 26, 2015 at 5:44am UTC
smsmsm
(2)
Hi
I have a file with 1000 of '\n' ( I mean it has lots of line) I'm looking for a way to writ in specific line of it.
Jun 26, 2015 at 5:49am UTC
LB
(13399)
With the way file systems work, you have to rewrite the whole file. If the new file is longer than the old file, you can get away with just overwriting starting at the first difference, but that isn't always the case.
Last edited on
Jun 26, 2015 at 5:49am UTC
Topic archived. No new replies allowed.