title: FileStream.WriteLine() is not writing to file
body: <p>I am trying to make a simple software which stores data in a TXT log file.
  This is my code</p>
  
  <pre><code>FileStream fs = null;
  StreamWriter fw = null;
  try
  {
      fs= new FileStream(Environment.GetFolderPath(Environment.SpecialFolder.Desktop)+"/textme.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite);
      fw = new StreamWriter(fs);
      fw.Write("sadadasdsadsadsadas");
  
      for (int i = 0; i &lt; AnimalShelter.AnimalList.Count; i++)
      {
          fw.WriteLine("&lt;chipNr&gt;" + AnimalShelter.AnimalList[i].ChipRegistrationNumber + "&lt;chipNr&gt;");
          Console.WriteLine("&lt;chipNr&gt;" + AnimalShelter.AnimalList[i].ChipRegistrationNumber + "&lt;chipNr&gt;");
      }
  }
  catch(IOException)
  {
      MessageBox.Show("ERROR THROWN");
  }
  finally
  {
      if (fs!= null) fs.Close();
      //  if (fw != null) fw.Close();
  }
  </code></pre>
  
  <p>What I achieved is: the file gets created, but nothing gets written in it. 
  I checked a lot of posts but I could not find any particular help. </p>