南柞木手串多少钱:C语言中fopen的用法

来源:百度文库 编辑:神马品牌网 时间:2024/07/05 19:31:25

FILE *fp;
fp=fopen("c:\\file.txt","r");
if((fp=fopen("c:\\file.txt","r"))==NULL)/*打开文件 */
{printf("cannot open this file\n");
exit(0);}
例中文件放在c盘