April 2026
Intermediate
1009 pages
34h 15m
English
There are two different approaches to working with files. You can work content-centered, meaning that files can be opened and closed again, you can read out data, and you can write into them yourself. Alternatively, you can focus on the file system itself and copy files to specific locations. We present both options in the following sections.
As you have seen in the database chapters, we always follow the same structure: We first describe how to create a connection to the database, then how to send queries and read out return values. We want to handle the files in a similar way.
The first step is to open a file. To do this, use fopen(), where the f stands for file. Of course, ...
Read now
Unlock full access