Problem of data storage

H

Harry

Dear All,

In my program, i would like to save some custom
settings for the users. Next time when the users load the progam, they will
see the settings that they have made before. For example, imagine that i am
writing a ftp client, which allows users to add their favorite ftp site in
my
program, and next time that user start the ftp client again, they can see
their favorite ftp site.

I was thinking to put those settings in a text file, when the program
starts, the
text file will be read to load those settings. But i don't like this
implementation
as people can easily open the file and corrupt it.

can anyone suggest how and where can i store those custom settings?
what is the most common practices to deal with this problem.

Thank you.

Regards,
Casgo
 
P

Peter Vervoorn

If it's enough to hide it from the average user then you could take these 2
steps:
Store the file in the isolated storage, using the System.IO.IsolatedStorage
namespace.
And you can use base64 to en-/decode it.

Regards,

Peter Vervoorn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top