Abstract

This chapter examines the C I/O system. There are three main categories of I/O functions: (1) stream, (2) console, and (3) low-level. The I/O operations are one of the more important components of a program. Most programs usually need to read and write data to the screen, printer, keyboard, and disk storage. If one does not learn how to perform correct I/O operations, the programs will run inefficiently and one could even loose valuable data. The chapter focuses on the organization of the I/O system and the stream I/O functions. It presents numerous examples demonstrating the use of these functions. The stream I/O is the highest level of the C I/O system. To fully understand the power and versatility of the stream I/O routines, the chapter describes important terminology such as buffered I/O, streams, user-defined and predefined stream pointers, text and binary modes, and formatted and unformatted I/O.

Full Text
Published version (Free)

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