August 2020
Intermediate to advanced
272 pages
7h 2m
English

This chapter will teach you how to perform input/output (I/O) operations to read data from, or write data to, terminals and filesystems. I/O involves all the ways information enters or exits a program, without which your programs would be useless. We’ll cover techniques that use C Standard streams and POSIX file descriptors. We’ll start by discussing C Standard text and binary streams. We’ll then cover different ways of opening and closing files using C Standard Library and POSIX functions. Next we’ll discuss reading and writing characters and lines, reading and writing formatted text, and reading to and from binary streams. We’ll ...
Read now
Unlock full access