View Full Version : how could I make my program store data?
speedingbullet
December 24th, 2007, 12:17 AM
Right now, the C++ text game I am working on is using a password system, but I would like for it to store save data on a text file, so you wouldn't have to write the password down.
How could I do this? Is there any tutorial on the net? I tried Googling this, but nothing came up.
Thanks in advance,
Richard.
LaRoza
December 24th, 2007, 12:27 AM
http://www.zeuscmd.com/tutorials/cplusplus/index3.php
For storing data is a database (which you probably don't need at the moment) you can use SQLite
speedingbullet
December 24th, 2007, 12:29 AM
Really? What would I need at the moment?
LaRoza
December 24th, 2007, 12:32 AM
Really? What would I need at the moment?
Sorry, I thought you just wanted to write and read from a text file. (The link has tutorials for that, 37, 38)
For storing data in a database, I highly recommend SQLite. It is small, and very easy to use and has little overhead.
speedingbullet
December 24th, 2007, 12:33 AM
Oh okay, well thank you!
Mr.popo
December 24th, 2007, 12:57 AM
Maybe this might help you:
http://www.cplusplus.com/doc/tutorial/files.html
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.