title: StreamWriter does not create a file, working on OSX
body: <p>I have a problem with my code, </p>
  
  <p>Xamarin does not inform with any errors and warnings but the file is still not created. </p>
  
  <pre><code>class MainClass
  {
      public static void Main(string[] args)
      {
              int counter = 1;
              double init;
              double finish = 5.6;
              double step = 0.2;
  
          using (System.IO.StreamWriter file = new System.IO.StreamWriter("file.dat"))
  
          for (init = 1.0; init &lt;= finish; init = init + step)
          {
              if (init / 2 &lt; 1.5)
              {
                  Console.WriteLine("init = " + init + "\t counter = " + counter + "\n");
                  file.Write("init = " + init + "\t counter = " + counter + "\n");
                  counter = counter + 1;
              }
              else
              {
                  Console.WriteLine("Failed Expression at " + init + " in " + counter + " turn!\n");
                  file.Write("init = " + init + "\t counter = " + counter + "\n");
                  counter = counter + 1;
  
              }
          }
  
  
      }
  }
  </code></pre>
  
  <p>I'd like to write in a file same lines that are written to a console, but the file does not exist. I've checked the other posts and tried suggested variations of solutions yet the file is still missing.</p>