#include <stddef.h>
#include <stdio.h>
int main () {
FILE *fp;
fp = fopen("file.txt", "r");
if( fp != NULL ) {
printf("Opend file file.txt successfully/n");
fclose(fp);
}
fp = fopen("nofile.txt", "r");
if( fp == NULL ) {
printf("Could not open file nofile.txt/n");
}
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265224.html