<<< I/O operations and Streams, cont. | Index | >>> |
Two types of files:
Text: contain readable characters stored as bytes and CR-LF line delimeters(*)
Binary: contain blocks of bytes used by proprietary program protocols
Two types of streams
Character
Binary
____________________
(*) The actual line delimeters are OS-specific:
CR-LF on Windows
LF on Mac OS X, UNIX, and Linux
CR on Mac OS up to version 9 and OS-9
For details, see wikipedia.org/wiki/Newline
In Java, you can obtain your local newLine delimiter as follows:
static final String newLine = System.getProperty( "line.separator" );
<<< I/O operations and Streams, cont. | Index | >>> |