In my opinion there are a lot of options, but when not very experienced you should keep it as easy as possible.
One way is to use the Settings you can generate with your project itself.
Just add a settings file to your project by clicking on Add > New Item
in the Solution Explorer, and choose Settings File
.
This is a useful article on adding lists to your settings file.
In your case you could also opt for a string
setting. Just save the integer values to that string
using:
Properties.Settings.Default.SettingX = string.Join(",", array);
Read them back using this:
string[] list = Properties.Settings.Default.SettingX.Split(',');