Hello,

In response to your question: "How can I creat a new file if it
doesn't exist and open the file if it exist?"

Try using the "Open/Create/Replace" VI.  This VI can be found on the
File I/O palette.  Right-click on the "function" input and create a
constant.  Click on the drop-down arrow for the enum and select "open
or create".  If you use this function, the VI will open a file if it
exists, and create it if it does not.  It will not return an error as
long as you have the "file path" input wired.

Hope this helps!

Liz F
National Instruments

Reply via email to