I just began to work in C programming with Xcode. But I have a problem now. I wrote this code :
#include <stdio.h> #include <stdlib.h> int main(int argc, const char * argv[]) { FILE *fp; fp = fopen("toto.txt", "w+"); fputs("hi", fp); fclose(fp); return 0; } As toto.txt doesn't exist, it's supposed to create and open it, but nothing happens, I don't know why.

