bradp Posted September 9, 2010 Share Posted September 9, 2010 When you use fopen in a Capp you must specify the entire path for the file. If you do not do this the the fopen will fail when you start the capp from the task manager or download because the default path is write protected. Will not work. fp = fopen("tmp.txt", "w"); if(fp == NULL) { return(0); } Will work. fp = fopen("/var/ftp/usrflash/Project/tmp.txt", "w"); if(fp == NULL) { return(0); } Link to comment Share on other sites More sharing options...
Recommended Posts