Is there any rules to open a text file using FILE pointer???
I wrote one simple program and i printed helloworld and then i opened a one text file using FILE pointer and i wrote some values into that file but i can't see my text file in project.. can u tell me where it is stored in my project????
and as well as i saw printed results 50 times in my console i attached one simple c file check this... Is there any changes????
int main()
{
FILE *fp;
init_platform();
int a, b;
a = 20;
b = 10;
printf("
Hello World
");
fp = fopen("hello.txt", "w");
for (i = 0; i < 10; i++)
{
tfprintf (fp, "i = %d
", i);
}
fclose(fp);
printf("
FINISHED
");
return 0;
}