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.
工具/软件:Code Composer Studio
尊敬的
目前、我正在研发 C6713 dsk、并使用了 CCSv3.1工具。 我想用 fopen()函数创建文件
并将数据写入该文件。 程序已编译并成功运行、但未创建任何文件。
我在下面给出了我的程序代码。
MAIN ()
{
int i=0;
int data1[20]={1、3、5、9、6、10、5、11、22、14、15、17、6、0、3、12、25、44、23、10};
文件*fileW;
fileW=fopen ("c:/turboc/gopalsarkar/gopal37.txt、"w");
对于(I = 0;I < 20;I++)
{
fprintf (fileW、"%d "、data1[i]);
}
fclose (fileW);
}
上述代码在任何其他 c 编译器中都能成功运行。
如果您有任何解决方案、请帮助我。
等待您的回复。
你(们)好
感谢您的回复。 我已经阅读了您作为 wiki 链接发送给我的说明页面。 但 我遵循了一些指令
我的问题没有得到解决方案。 阅读 本指南教程可能不是很正确。 实际上、我想知道这些指令、
我应该怎么做来解决我关于这个文件读取写入函数的问题,比如 fopen()、fprintf()。
请帮助。
等待您的回复
此致
Gopal Sarkar