|  | 
 | ||||
|        | |||||
|  | ||||||
| Related Syntax | Other Library Functions | |||||
| function | vfs.reader | 
| Library: File system utilities (OMVFS) Import: omvfs.xmd | Return type: String source Returns: An OmniMark source object to the opened file | 
export external string source function reader
        of      value file file-ref
	
Argument definitions
You can use vfs.reader to read the contents of a file opened with vfs.open. vfs.reader returns an OmniMark source attached to the specified file. 
  import "omvfs.xmd" prefixed by vfs.
  
  process
    local vfs.file test-file
     set test-file to vfs.open "/programs/test.txt" 
      for vfs.read-mode
    submit vfs.reader of test-file
You can also read a file using OmniMark's built in file keyword, but using vfs.file gives you greater control over how the file is opened and read.
The following exceptions may occur:
Copyright © Stilo International plc, 1988-2008.