February 2021
Beginner
338 pages
4h 11m
English
A file is an array of bytes, usually stored on mediums such as drives. We can write to and read from a file using a few C standard-library functions. The following sections explain the workflow and the functions used.
Open a file for reading using the fopen function.
Read a line of text from a file using the fgets function.
Close the file using the fclose function when done.
Read now
Unlock full access