Uses fopen() and fclose().