title: System.IO.IOException: 'Bad file name or number'
body: <p>I have this string and I am trying to write it with FileSystem.Write and I keep getting this error of 'Bad file name or number'.</p>
  
  <pre><code>sline = FormName + "|" + OrderNo + "|" + BatchNo + "|" + OpusOverlay + "|" 
  + Overlay + "|" + Type + "|" + Numbered + "|" + NeedPDF + 
  Constants.vbCrLf;
              FileSystem.Write(1, sline);
  </code></pre>
  
  <p>What could be the cause of this? Any push in the right direction would be greatly appreciated</p>