MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: checking for presence of files


Otto Linsuain wrote:
> 
>  Hi all. I know the answer to this could be system-dependent. I work
> with Mathematica 4.0 on unix workstations.
> 
>  I wonder if it is possible to define a function that checks if a file
> exists in your disk, something like
> 
>  FindFile[filename_String] = True if the file exists, False otherwise.
> 

Hi Otto, 

You have been close to the answer:

FileNames[filename_String] != {}

Regards,
Harald


-- 

Harald Giese
Email: giese at ifm.uni-hamburg.de
Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724
Institut fuer Meereskunde der Universitaet Hamburg
(Institute of Oceanography of the University of Hamburg)
Troplowitzstrasse 7, D-22529 Hamburg


  • Prev by Date: Re: How to create Tex documents
  • Next by Date: Re: Newbie
  • Previous by thread: checking for presence of files
  • Next by thread: Re: checking for presence of files