swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
Prerequisite Concepts     Related Topics  

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
 
  Related Topics
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:35:14 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.