I created a wpf application that can create, write to, and read from a .txt document to store and persist data. Currently the application creates the text file within the solution folder, but what I would like to accomplish is the ability of the executable file to act as a stand-alone application that can spawn the text file somewhere on the user's computer, and continually persist and retrieve data from that file.
So, theoretically I could send a copy of the executable to a friend, they could open it and upon saving data a file would be spawned on their computer which would then be called whenever the application was run.
Right now what I had in mind for an answer is which folder I would need to use in this call within my application:
FileStream fs = new FileStream("ListOfTasks.txt", FileMode.OpenOrCreate);
StreamReader s = new StreamReader(fs);
Or otherwise, what other methods I could use to cause my executable to act as a stand-alone that can persist data without a database.