Saving user values to files in C #

1

I'm looking for some simple way to save user data to file in C #.

In Java I always use the Properties class.

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

For example here is spoken much of "System.Configuration.ConfigurationManager" and in other answers talks about "Properties.Settings".

In msdn.microsoft.com has some examples, but I do not have the "ConfigurationManager" class.

I'm using:

using System.Configuration;

But for now these classes are not available!

I'm using .NET 3.5 and I'm developing for Windows CE and Windows Mobile.

Someone has already gone through this and can help me?

    
asked by anonymous 17.08.2016 / 16:58

2 answers

1

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

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

    
17.08.2016 / 17:03
1

I recommend storing in a text file in the JSON format.

To work with JSON is very simple, at a glance here: link

And there are plenty of examples on the site above and here ..

Read Ex: link

Writing Ex: link

    
17.08.2016 / 22:42