title: How to write an observable collection to a txt file?
body: <p>Whats the best way to write an observable collection to a txt file? I currently have the following</p>
  
  <pre><code>public ObservableCollection&lt;Account&gt; SavedActionList = new ObservableCollection&lt;Account&gt;();   
  using (System.IO.StreamWriter file = new System.IO.StreamWriter("SavedAccounts.txt")) 
          {
              foreach (Account item in SavedActionList)
              {
                  file.WriteLine(item.ToString()); //doesn't work
              }
              file.Close();
          }
  </code></pre>
  
  <p>I'm not sure why it won't write to the file. Any ideas?</p>