cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
About saving to file
About saving to file
Sep 20, 2012 at 4:18am UTC
l3st3r
(6)
Hi guys.. I was wondering how can I write at the beggining of the file??
file inputs
Lester Mark
I want it to be
Samonte Lester Mark
Sep 20, 2012 at 8:40am UTC
Fransje
(435)
You will have to put the write position at the beginning of the file, using
seekp()
. Have a look at this page, under the "get and put stream pointers" section:
http://cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.