8INPUT/OUTPUT
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 ...
Get Effective C now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.