Abstract

This chapter discusses file I/O; information on computers is organized into directories and files. Typically files have a filename followed by a filename extension which identifies the type of file. This file extension is important in some operating systems, such as Windows 95 and Windows NT, as it identifies the application program which is associated with the file. Furthermore, a text file uses ASCII characters and a binary file uses the binary digits which the computer uses to store values. It is not normally possible to view a binary file without a special program, but a text file can be viewed with a text editor. There are 11 main functions used in file input/output (I/O), which are listed below. The fprint () and fscanf () functions are similar to printf () and scanf (), but their output goes to a file.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.