title: Does the Print() method in VB.NET work with files opened with Binary access?
body: <p>I am trying to write data to a binary file using the Print() method, but when I run it I get the System.IO exception Bad File Mode. Does anybody have an idea of what's going wrong here? Here's the code for the FileOpen declaration, that might have something to do with it? Thanks  </p>
  
  <pre><code>FileOpen(filenumber, "path to file", OpenMode.Binary, OpenAccess.Write, OpenShare.LockReadWrite)  
  Print(filenumber, expression(variable))
  </code></pre>