Disk I/O operations are performed on entities called files. The brief categorisation of Disk I/O functions is given below:-

From above we can see that the file I/o functions are further categorised in to text and binary.
This classification arises out of the mode in which a file is opened for input or output. Which of these two modes is used to open the file determines:
(a) How new lines (\n) are stored
(b) How end of file is indicated
(c) How numbers are stored in the file
From above we can see that the file I/o functions are further categorised in to text and binary.
This classification arises out of the mode in which a file is opened for input or output. Which of these two modes is used to open the file determines:
(a) How new lines (\n) are stored
(b) How end of file is indicated
(c) How numbers are stored in the file