主页
C 语言
C 读取文件
c_demo_files_null
运行 ❯
×
更改方向
保存代码
更改主题
#include
int main() { FILE *fptr; // Open a file in read mode fptr = fopen("loremipsum.txt", "r"); // Print some text if the file does not exist if(fptr == NULL) { printf("Not able to open the file."); } // Close the file fclose(fptr); return 0; }
Not able to open the file.