This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVM6678L 读取文件失败



现在用EVM6678L开发板,想从计算机中读取.dat文件,使用函数fopen,.data文件存放在工程目录下

FILE *fp;

if((fp = fopen("data.dat","r"))!=NULL)

{

printf("Open succeed!\n");

}

调试发现fopen函数的返回值总是NULL,数据打开不成功,请问这是什么原因?