Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: How to check if a file exists?

  • To: mathgroup at
  • Subject: [mg47590] Re: How to check if a file exists?
  • From: drbob at (Bobby R. Treat)
  • Date: Fri, 16 Apr 2004 05:22:09 -0400 (EDT)
  • References: <c5lf22$bn0$>
  • Sender: owner-wri-mathgroup at

FileNames["C:\Documents and Settings\All Users\Application

(for instance) will be an empty list if the file doesn't exist.


Thomas Guignard <thomas.guignard at> wrote in message news:<c5lf22$bn0$1 at>...
> Hi
> I have little experience in Mathematica and I have trouble getting used 
> to the Mathematica way of thinking.
> I'm looking for a way to check if a given file exists. If it exists, I 
> load its contents, if not I have to start a block of calculations.
> I just can't find the function to check the existence of a file!
> Thanks
> Tom

  • Prev by Date: Re: Notation Question
  • Next by Date: Re: Alternative to defining 'operator' function?
  • Previous by thread: Re: How to check if a file exists?
  • Next by thread: Alternative to defining 'operator' function?