Hello,
No idea why that wouldn't work.
I did a simple test using the web_hvac example and could do the following
log_fp = fopen("c:\\hvac_log.txt","a"); //DES worked
#define LOG_FILE "c:\\hvac_log.txt"
log_fp = fopen(LOG_FILE,"a"); //DES worked
I wonder if something funky with your flash case where the string is not NULL terminated???
As an additional test after closing the file I then re-opened it using following code and it worked fine.
log_fp = fopen("c:\\hvac_log.txt","r");
if (log_fp) {
char temparray[31];
fgets((char *)&temparray[0], (int_32)30, log_fp);
}
Lastly when you step into the fopen() can you use your Variable window to see what the "tmp_ptr" is set to?
In my picture below it is shown as "c:\\hvac_log.txt"

Regards,
David