Skip to content
Select theme

Reading and writing files

Everything up to here happens inside your program. This chapter is about the parts that leave it: a file on disk, a path that breaks on Windows, a directory to walk.

All of it can fail, and none of it is the compiler’s problem — so every article here is as much about the error as the happy path.