swirl
Guide to OmniMark 7   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 ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:36 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.