I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM?
sohamghosh 0 Newbie Poster
Recommended Answers
Jump to PostWell You should use files to store data and get back data in the beggining stages.
filestreams would help you out with that.
Try googling out filestreams with c++ for a tutorial.
Jump to PostHi
like sbdy told u above search forfilestreams
but when u start searching for tutorials add the following term as well:
serialization
A hard disk and thus a disk file too has a one-dimensional structure -> linear.
Therefore whenever you write to a file, you write one thing after …
All 5 Replies
Sky Diploma 571 Practically a Posting Shark
Alex Edwards 321 Posting Shark
grumpier 149 Posting Whiz in Training
Alex Edwards 321 Posting Shark
sidatra79 36 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.