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.