title: "An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll" whenever I try using this method
body: <pre><code>public void SaveAll(int volume, int duration, string playing, int 
                          LBPindex, int LBSindex, string URL, int maximum)
  {
      FileStream fs = new FileStream("SaveDATA.bin", FileMode.Create);
      StreamWriter sw = new StreamWriter(fs, Encoding.Default);
      sw.WriteLine("SETTINGS" + "|" + volume + "|" + duration + "|" + 
      playing + "|" + LBPindex + "|" + LBSindex + "|" + URL + "|" + 
      maximum);
  
      foreach (var item1 in Playlist.SavedPlaylists)
      {
          sw.Write("PLAYLIST" + "|" + item1.Name + "|");
          foreach (var item2 in item1.SavedSongs)
          {
              sw.WriteLine(item2.Path + "|" + item2.Title + "|" + 
              item2.Author + "|" + item2.Album + "|" + item2.Release + 
              "|" + item2.Genre + "|" + item2.Comment);
          }
      }
      sw.Close();
      fs.Close();
  }
  </code></pre>
  
  <p>Im making an Music Player and this Method is being used everytime the user changes some things to either playlists, songs or anything at all.</p>
  
  <p>The error occures everytime my Filestream tries to do something.</p>