使用打开外部文件 打开文件
在我们能够从磁盘上的文件读取(或写入)信息之前,我们必须打开该文件。为了打开文件,我们调用了fopen函数。< / p >
1.firstly it searches on the disk the file to be opened.
2.then it loads the file from the disk into a place in memory called buffer.
3.it sets up a character pointer that points to the first character of the buffer.