title: How can I make a program work on different computers independent of .NET Framework? C#
body: <p>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.</p>
  
  <p>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..</p>
  
  <p>Do you have any idea how I can make the program independent of Microsoft's version of Framework.</p>
  
  <p>I am saving the file using this process, if it helps to know what I'm talking about:</p>
  
  <pre><code>string filePath = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "\\ConnectFour.txt";
  
  StreamWriter myFile = File.CreateText(filePath);
  </code></pre>
  
  <p>What can I do please? </p>
  
  <p>Thanks a lot!</p>