14 Buffered File I/O
In the first part of this book, we struggled to get even the simplest output to the console. But for this part of the book, we have an operating system, and that makes dealing with output and input a lot easier. That’s because the operating system hides a great deal of the complexity from you: you just write "Hello World\n"
, and the operating system sends the data to the appropriate place.
In this chapter you’ll learn about C’s I/O system, which includes not only the printf
function but also functions to read and write disk files in a manner that is both efficient and very flexible.
The printf Function
We’ve already ...
Get Bare Metal 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.