contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
declaration/definition   newline    
  Related Syntax    

Syntax

  newline


Purpose

A declaration that changes the newline sequence for all data input or output by the program. As a side effect, it also causes all input and output to be performed in the binary mode. If the programmer wishes to write text files in a program that has a newline declaration, the system-specific newline sequence must be written out explicitly. Such programs are less portable.

The newline declaration is deprecated. Programmers are strongly recommended to use text-mode and binary-mode to individually specifiy whether streams or input files contain binary data or text. The declare #main-output and declare #main-input declarations are the recommended way to set the mode for the main input and output.

When the newline declaration is used in a program, the text-mode and binary-mode open modifiers are prohibited.

The default mode for all streams is text-mode unless the deprecated newline is used in the program.

    Related Syntax
   binary-mode
   text-mode
   declare #main-output has
   declare #main-input has
 
 
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:11 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.