Click here to Skip to main content
15,851,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK, so, when i create an application for sale purposes (e.g. a game) how can i store info on their computer without having to install things like sqlite or compact edition etc.

For example, say i created a text based game and it used a user name to define different users. How would i save the current users progress, and where would i store the user names?
I'd rather not use SQL Compact Edition etc, as it gets a bit messy with installation (i.e. i have to attach all the sql dll files to the programs folder etc)

1 solution

I don't know about phone access to the local storage but is is available. There is no reason you can store you data in local text files, presumably it is small in volume.
Share this answer
brucey_D 10-Nov-13 1:30am    
not an app for phones, i mean just a computer based one. So i should just store all the data in text files in the application folder??
Mycroft Holmes 10-Nov-13 7:25am    
Usually you should use the AppData folder for the users, some systems will have the installation folder locked out. You can find it using SpecialFolders in the IO namespace
Mycroft Holmes 10-Nov-13 17:56pm    
Whatyou have not mentioned is the UI you are using. Windows has a folder for AppData for everyuser on a windows machine and exposes that via the SpecialFolder enumeration, do some research into that area you will find the tools to meet your needs there.

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