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.

write in .txt

Other Parts Discussed in Thread: TMS320C5515

Hello,

I want to use a code that stores the value of a variable in a file .txt. For that purpose, I began developing a simple code:

#include <stdio.h>

FILE *f;

void main (void)

{

f=fopen("example.txt","w");

fprintf(f,"Hello");

fclose(f);

}

When I build that, there is not any error, However, when I finish to debug this code, and I open the example.txt, there isn't anything inside.

I would be very grateful If you can help me with that.