comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » File test
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
File test [message #4448] Mon, 29 May 1995 00:00
wolf is currently offline  wolf
Messages: 1
Registered: May 1995
Junior Member
Hi,

What is the best way to test for the existance of a file ? I can't
find it in the manual. At the moment I use something like this :

FUNCTION fexists, file
ON_IOERROR, error
openr,1,file
close,1
; found the file
return, 1

error:
;can't open the file, so it's probably not there
return,0
end

But there must be a much more elegant way, I think.

Gr.
Wolf

--
===============================================
\ /\ / Wolf Wolfswinkel
\ / \ \/ /
\/ \/\ /\ / W.Wolfswinkel@fys.ruu.nl
\/ \/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Seeking Savitsky-Golay (savgol) filter.
Next Topic: V4.0 Exclusive Button Groups

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:23:30 PDT 2025

Total time taken to generate the page: 0.01128 seconds