Once you have declared a file pointer, you arrange for it to point to a
file-describing structure that is created at run time by a function named
fopen
, an acronym for file open. Note that the
call to fopen
has two arguments: the first specifies the name of a
file, and the second specifies whether the file is to be read from, written
to, or appended to. Whenever the second argument is "r"
,
fopen
prepares for reading:
file-pointer name = fopen(file specification, "r");
You do not need to know about the structure variables in the structure
created by fopen
, because your access to the structure variables is
via access functions that know about them.