Log in

View Full Version : Check if file exists


siggy2xc
16-03-2011, 00:42
Is there a way to check if a file exists? I'm trying to add an "Are you sure you want to overwrite?" user message if a file that exists is about to be overwritten.

Joe Ross
16-03-2011, 00:50
Use the "check if file or folder exists" vi.

Alan Anderson
16-03-2011, 00:57
When you right-click in an empty spot in a block diagram, the functions palette appears. At the top of the functions palette is a "Search" button. If you click that and type "check if file exists", you will find the "Check if File or Folder Exists.vi" identified. It's one of the Advanced File Functions in the File I/O subpalette.

siggy2xc
16-03-2011, 01:42
How did i miss that!? :confused: I looked in the File I/O palette a million times

Thanks Alan