in c++ trying to do it this way, but it doesen't help
int logA = 0;
FILE* f = fopen("~/Desktop/rr.log","w");
int a = errno;
fprintf(f,"%d", ++logA);
fclose(f);
errno returns 2 - "No such file or directory", there is no file present but it should be created.
please advise
int logA = 0;
FILE* f = fopen("~/Desktop/rr.log","w");
int a = errno;
fprintf(f,"%d", ++logA);
fclose(f);
errno returns 2 - "No such file or directory", there is no file present but it should be created.
please advise