02-04-2008 11:17 AM
02-04-2008 11:24 AM
Well, I'd usually start with either fopen() (ANSI) or OpenFile() (CVI) and work from there. ![]()
JR
02-06-2008 09:53 AM
03-28-2013 12:42 PM
Sorry, super old thread, but OpenFile doesn't appear to create the file if it doesn't already exist. Am I missing somthing?
03-28-2013 01:53 PM
Yep, I was missing something. I originally attempted this:
handleLogFile = OpenFile(logfilename,VAL_READ_ONLY,VAL_APPEND,VAL_ASCII);
But the VAL_READ_ONLY won't create the file if OpenFile fails. Instead, a VAL_READ_WRITE must be used.