MathGroup Archive 2002

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

Search the Archive

Re: Examples of Safe File Handling


Hi,

FileNames[] returns an empty list if there are no
files. So

FileNames["blub.txt"]

will return {} if the file does not exist.

Regards
  Jens


Steven wrote:
> 
> I've been looking over the file and directory manipulation functions in Mathematica
> 4.1, and I'm not finding good examples of how to test for the existence of
> a file or directory before I attempt to create, access, or delete it.  Are
> there any good examples of this somewhere?
> 
> STH


  • Prev by Date: Re: Examples of Safe File Handling
  • Next by Date: Re: Mathematica stole my X so I had to kill it
  • Previous by thread: Re: Examples of Safe File Handling
  • Next by thread: Re: Examples of Safe File Handling