swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Prerequisite Concepts     Related Syntax  

Files: binary-mode and text-mode

The binary-mode or text-mode keywords affect the automatic processing of newlines in the file being read. When you specify the mode binary-mode, no processing is performed on the newlines. When you specify the mode text-mode, the following sequences are translated to a single newline (ASCII 10) character:

For example, if foo were a global or local stream variable, you might issue the following code:


    open foo with (buffered and text-mode) as file "foo.txt"

When neither mode is specified, on a UNIX system, the file is treated as a binary-mode file. (On UNIX systems, the newline (ASCII 10) character is the system-specific newline sequence, so no transformation is necessary for text files.) On all non-UNIX systems, the file is treated as a text-mode file.

Prerequisite Concepts
   Input
 
  Related Syntax
   binary-mode
   file
   open
   text-mode
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:25:49 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.