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

Home » Public Forums » archive » Re: File test
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: File test [message #4432 is a reply to message #4430] Wed, 31 May 1995 00:00 Go to previous messageGo to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
William Thompson (thompson@orpheus.nascom.nasa.gov) wrote:

[ Original specification deleted]

: Actually, that's why I use. I find it extremely fast, much faster than the IDL
: built-in function called FINDFILE. I would, however, suggest modifying your
: routine to read

: FUNCTION fexists, file
: ON_IOERROR, error
: openr,unit,file

this should be
openr, unit, file, /get
otherwise you'll get an undefined variable error on the openr.

: free_lun,unit
: ; found the file
: return, 1

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

: So that you don't run into a problem if unit 1 is already used elsewhere.

: Bill Thompson

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spearman rank coeff significance?
Next Topic: IDL alternatives?

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

Current Time: Fri Oct 10 22:44:47 PDT 2025

Total time taken to generate the page: 0.63854 seconds