Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - dos files are stored within directories on disk drives. most software, http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DOS files are stored within directories on disk drives.  Most software,
including Watcom C/C++, treats files in two representations:

BINARY
    These files can contain arbitrary data.  It is the responsibility of the
    software to recognize records within the file if they exist.

TEXT
    These files contain lines of "printable" characters.  Each line is
    delimited by a carriage return character followed by a linefeed
    character.

Since the conceptual view of text files in the C and C++ languages is that
lines are terminated by only linefeed characters, the Watcom C library will
remove carriage returns on input and add them on output, provided the mode
is set to be text.  This mode is set upon opening the file or with the
 setmode function.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson