Slimelite BBS

Re: C File I/O - Intro

Back to R25C

From Ian James Abbott · 1996-04-09 07:27 · #75277 in R25C

In reply to C File I/O - Intro by Matthew Probert

From: jambo@spuddy.mew.co.uk (Ian James Abbott)

Yo Matthew!
>Text file I/O is the exchange of data between a file and the computer's RAM
>in a format readable by humans. This includes translating single carriage
>returns and line feed codes into CR LF pairs.

Specifically, the character code '\n' is converted to the
implementation's representation of the end of a text line on output, and
vice versa on input.

>C considers a 'file' to be any device other than the computer's RAM. This
>includes; disk drives, serial ports, parallel ports and the console and as
>such encompasses printers, the keyboard, modems and the VDU.

It _could_ be the computer's RAM. It's usually up to the underlying
operating system what a filename refers to.

-- 
  * Meeeow! Call Spuddy on +44 1268 515441 for FREE mail & Usenet access. *
--- ifmail v.2.8c
 * Origin: Spud's Public Usenet Domain (2:257/108.12@fidonet)