|        | |||||
|  | |||||
| Files: binary and text-mode | |||||
| Prerequisite Concepts | Related Syntax | ||||
The binary or text-mode keywords affect the automatic processing of newlines in the file being read. When you specify the mode binary, 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:
"%13#%10#")
"%13#")
"%10#")
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/Output | Related Syntax binary file text-mode | 
| ---- |