title: How can I write a file in VxWorks shell
body: <p>I am trying to write a file in VxWorks using something like</p>
  
  <pre><code>saveFd = open("myfile.txt",0x102, 0777 )
  oldFd = ioGlobalStdGet(1)
  ioGlobalStdSet(1, saveFd)
  d 0xfea00100, 4 
  ioGlobalStdSet(1, oldFd)
  </code></pre>
  
  <p>But I am unnable to perform the file creation / writing.
  Here is the output:</p>
  
  <pre><code>-&gt; saveFd = open("myfile.txt",0x102, 0777 )
  saveFd = 0x1fbfb040: value = -1 = 0xffffffff
  -&gt; ioGlobalStdSet(1, saveFd)
  dvalue = -1 = 0xffffffff
  </code></pre>
  
  <p>How can I create a file with the desired output?
  Thanks in advance.</p>