swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   vfWriter   OMDN

Library: omvfile - virtual file access and locking
Include: omvfile.xin
Return type: Attachment
Returns:       

An external output object.


Declaration

  define external output function vfWriter
      value omVFile this-vfile

Where:
this-vfile



Purpose

You can use vfWriter to write to an omVFile object. This function returns an OmniMark source that can be used with OmniMark keywords "put", "using output as", "open", and "set".

Sample function call:

  include "omvfile.xin"
  process
     local stream foo
     local omVfile my-file
     set file "tar.txt" to "Z dog has fleas."
     set my-file to vfOpen "tar.txt" for "w"
     open foo as vfWriter my-file
     using output as foo
        output "A"
     output file "tar.txt"
  ; output: "A dog has fleas."

The above code overwrites the first character in my-file with "A".

        Other Library Functions
   vfCursorPosition
   vfDiscard
   VFileIsVersionCompatible
   VFileLibraryVersion
   vfLock
   vfMoveCursor
   vfOpen
   vfReader
   vfSize
   vfUnLock
   vfURL
   vfWriter
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:08:12 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.