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/C++ v10.0 : C library - 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, 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 language is that lines are
terminated by only linefeed characters, the 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