Problem of data storage

  • Thread starter Thread starter Harry
  • Start date Start date
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
 
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
 
Back
Top