Save user values to C#files

Asked

Viewed 45 times

1

I am looking for some simple way to save user data to file in c#.

In Java I always use the class Properties.

I’m looking for something similar in C#, I already searched and found some answers but still could not solve my problem.

For example here says a lot about "System.Configuration.Configurationmanager" and in other answers talks about "Properties.Settings".

In msdn.microsoft.com has even some examples, but I don’t have the class "Configurationmanager".

I’m using:

using System.Configuration;

Only for min these classes are not available!

I am using . net 3.5 and am developing for Windows CE and Windows Mobile.

Someone’s been there and can help me?

2 answers

1

although by default there are some classes on the namespace System.Configuration, these classes are not within the System.Configuration, but of System.

To use the ConfigurationManager you need to reference to System.Configuration, to do so use the right mouse button on references and add to the reference to System.Configuration

  • I’m already referencing System.Configuration

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.