Compare this example with the equivalent example for exists( ):

#define LOG_FILE "ACCESS.TXT"

if file(LOG_FILE)

   h = fopen(LOG_FILE, "A") 

else

   h = fcreate(LOG_FILE, "A") 

endif

fputs(h, new Date().toLocaleString())

fclose(h)