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.

Cannot print the data to a file in CCSV4 6713DSK

Hi, 

I want to print the memory data to a file and use the following code:

#include <stdio.h>

FILE *fp;
int i;

#if 1
fp = fopen("paket.txt", "w");
for (i = 0; i < (BlockSize); i++)
printf(fp, "%d\n", XmtBufferPt[i]);
fclose(fp);
#endif

And I got the following error message:

error: argument of type "FILE *" is incompatible with parameter of type "const char *"

How I can solve this issue?