MathGroup Archive 2002

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

Search the Archive

Re: Examples of Safe File Handling

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36947] Re: Examples of Safe File Handling
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 3 Oct 2002 00:16:23 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ane996$kg0$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

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