C# - How to write a 2D array into a text file and open it back up?
posted 4 years ago
I am currently coding in C#; very similar to Java, and i cannot for the life of me figure something out. I want to be able to save the contents of an array into a .txt file so that it can be opened up, this is so that i can save and open the programme, and the properties will all stay the same, if that makes sense?
currently i have just been looking around and trying out different things.
Here is what i have?
As you can see, the 2d array here is 'Names' and i want to be able to save this array into a text file with the click of a button, and also hopefully open it back up?