hello,
after long time of searching I came here for your help.
This is my program:
#include <stdio.h>
int main()
{
FILE *fr;
fr=fopen("cool.txt", "w");
if (!fr) { perror("fopen"); } else { printf("Nothing Wrong"); }
fprintf(fr, "hello");
fclose(fr);
return 0;
}
I am using Xcode. After I compile it, I got printed: Nothing Wrong.. But when I want to find my text file, I can not.. I tried even searching through spotlight, but I could not find it..
Please help ...
after long time of searching I came here for your help.
This is my program:
#include <stdio.h>
int main()
{
FILE *fr;
fr=fopen("cool.txt", "w");
if (!fr) { perror("fopen"); } else { printf("Nothing Wrong"); }
fprintf(fr, "hello");
fclose(fr);
return 0;
}
I am using Xcode. After I compile it, I got printed: Nothing Wrong.. But when I want to find my text file, I can not.. I tried even searching through spotlight, but I could not find it..
Please help ...