Jump to content
OMRON Forums

fopen fails in my capp


bradp
 Share

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...