
534 Programming in C
execution of a program and ma-
nipulating data the original data
may be lost. It is needed to store the
data permanently on to the second-
ary devices. On applying disk I/O
operations, all variables created in
RAM can be stored to the secondary
storage device such as hard disk or
floppy disk.
In Figure 14.1, a floppy disk
is shown. It is also possible to read
data from it or secondary storage de-
vices. When data is read from such
devices it is placed in the RAM and
then using console I/O operations it
is transferred to screen.
A file is nothing but the accu-
mulation of data stored on the disk created ...