[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


file_exist Source code in file_exist.pro

file_exist

Name
          file_exist
Purpose
          return 1 if filename exists, 0 if not
Category
          file handling
Calling Sequence
          file_exist(filename)
Input Parameters
          filename: name of file
Optional Input Parameters
          none
Keyword Parameters
          none
Output Parameters
          1 if filename exists, 0 if not
Optional Output
          none
Common Blocks
          none
Side Effects
          one LUN is temporarily used
Restrictions
          none
Procedure
          an attempt to open the file with a read is undertaken, if
          the attempt succeeds, the file exists.
Example
          if (file_exist("/etc/services")) then begin
             print,'/etc/services exists'
          endif
Revision History
          Version 1.0, 1997/10/06, Joern Wilms

Last modified by pro2html on 2005 January 04 at 16:38 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically