Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Just like databases, is there any type declaration that can hold value parmanently even when I shutdown the computer?
If there is, I'll love to use it. Please show me how!
Thank you.
Posted
Comments
Tomas Takac 20-Dec-14 15:26pm    
Write it to a file.

Database, config file, registry, lots of ways to store stuff.
 
Share this answer
 
A database is in real a file, with some efficient way to store the data and to provide it back to the users. You can store the data inside any other file, not just any text file you can create your own file types and store the data in it.

The data is lost only if it is present inside the RAM and the machine is turned off, upon restart (start) the data will be lost. But, if that data is stored inside the hard-disk or any other secondary storage medium it will be available to be re-used. So when you shutdown the computer and restart it, the data is still there in the file (on the hard-disk really).
 
Share this answer
 
Comments
Salisu Shaibu 21-Dec-14 16:04pm    
Thanks alot Afaal Ahmad.
What I realy mean is that - just like string, double or object type declaration, is there any type declaration that can keep data saved parmanently like Access, Excel, txt file database?
Guide me on how to do it please!
Afzaal Ahmad Zeeshan 21-Dec-14 17:15pm    
There is a difference between Excel, Text file data, and the string, double and object type data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900