title: How write a file using StreamWriter in Windows 8?
body: <p>I'm having trouble when creating a <code>StreamWriter</code> object in windows-8, usually I just create an instance just passing a string as a parameter, but in Windows 8 I get an error that indicates that it should recieve a Stream, but I noticed that Stream is an abstract class, Does anybody knows how will be the code to write an xml file?, BTW I'm using .xml because I want to save the serialized object, or does anyone knows how to save to a file a serialized object in Windows 8?.</p>
  
  <p>Any ideas?</p>
  
  <p>Currently using Windows 8 Consumer Preview</p>
  
  <p>Code:</p>
  
  <p><code>StreamWriter sw = new StreamWriter("person.xml");</code></p>
  
  <p>Error: </p>
  
  <p><code>The best overloaded method match for 'System.IO.StreamWriter.StreamWriter(System.IO.Stream)' has some invalid arguments</code></p>