Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kay.altos

macrumors newbie
Original poster
Dec 27, 2007
2
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.