Tool/software: Code Composer Studio
Dear
Presently, I am working on c6713 dsk and used CCSv3.1 tool. I want to create file by fopen() function
And write data into this file. Program is compiled and run successfully, but no file is created.
I have given my program code below.
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};
FILE *fileW;
fileW=fopen("c:/turboc/gopalsarkar/gopal37.txt","w");
for (i = 0; i < 20; i++)
{
fprintf(fileW,"%d ",data1[i]);
}
fclose(fileW);
}
This above code is working successfully in any other c compiler.
Kindly help me if you have any solution.
Wait for your kind reply.