LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a function to know if a file exist

I want found out, if a file exist. Then I can ask the user if he wants to overwrite them.
As yet, I use GetFileSize. But it is occuring the NON-FATAL RUN-TIME ERROR
Library function error (return value == -1).
Is there a other function I could use to found out, if the file exist?
 
Thank you
0 Kudos
Message 1 of 2
(2,974 Views)

Yes - it is called FileExists (Filename, &filesiz), in the Programmer's Toolbox.

JR

0 Kudos
Message 2 of 2
(2,972 Views)