title: Equivalent of "Open fileName For Output As #1" VB6 to .NET
body: <p>Another migration question,</p>
  
  <p>I have another chunk of VB6 code that seems to need some workaround for .NET. For a shortened version, this is all it is doing:</p>
  
  <pre><code>Open sFileName For Output As #1
  Print #1,
  Print #1, "Facility:" &amp; vbTab &amp; Replace(Frame1.Caption, ",", " ")
  Print #1, 
  Print #1, "Address:" &amp; vbTab &amp; Replace(Me.lblAddr1.Caption, ",", " ")
  Print #1, "City/State:" &amp; vbTab &amp; Replace(Me.lblAddr2.Caption, ",", " ")
  </code></pre>
  
  <p>And so on, and so forth. You can see it keeps repeating itself to create new lines. The question is, is how do I implement the same thing in .NET? Thanks for all the help guys.</p>
  
  <p>Logan</p>