I'm starting a new project, and I need to be able to save/load users data.
I want them to click a button, then this brings up a file explorer where they select their .txt file. This .txt file then needs to be stored in a string array, where I can then manipulate the data.
If someone could point me in the right direction of what tools to use, that would be great. I've looked at OpenFileDialog, but I don't see how to assign it to an array.
Sounds like you're just looking for File.ReadAllLines
- once you've got the filename, of courses. You need to separate out the tasks of "let the user select a file" from "read the contents of the file".
OpenFileDialog
is probably the right tool to use for the first part, then File.ReadAllLines
for the second...
See more on this question at Stackoverflow