title: F# PCL and System.IO.FileStream
body: <p>I am writing a PCL using F# and I am trying to write something to disk.  All of the PCL examples are in VB.NET and C# and those examples don't work in F#.  Specifically, I have this code:</p>
  
  <pre><code>type FileSystemStockProvider(filePath:string) =
      member this.PutData(stockData) =
          let serializedData = stockData 
                                  |&gt; Seq.map(fun row -&gt; JsonConvert.SerializeObject(row))
          let outFile = new System.IO.StreamWriter(filePath)
          outFile.Write(serializedData)
  </code></pre>
  
  <p>The problem is that the System.IO.StreamWriter in F# does not have an overload to disk so it does not compile.  Does anyone have a suggestion on how to write to disk using a PCL?</p>
  
  <p>Thanks in advance</p>