I have an application which includes saving state of the game in a text file. I am sending .exe file to a couple of my friends. The saving is working on some computers and giving an exception on others.
When I researched a bit, I figured that this may be a problem of not having compatible .NET Framework on the receiver end. Of course, this is undesirable for me as I want the application to work on every computer..
Do you have any idea how I can make the program independent of Microsoft's version of Framework.
I am saving the file using this process, if it helps to know what I'm talking about:
string filePath = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\ConnectFour.txt";
StreamWriter myFile = File.CreateText(filePath);
What can I do please?
Thanks a lot!