#include <stdio.h>#include <windows.h>int main(void){ FILE *a; a=fopen("C:\\student.txt","r"); if(!a){ printf("文件错误!"); }else{ printf("文件打开成功!\n"); system("pause"); } return 0;}