[Date Index] [Thread Index] [Author Index]
Re: How to check if a file exists?
On 4/15/04 at 3:39 AM, thomas.guignard at epfl.ch (Thomas Guignard) wrote: >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! FileType will do what you want. If you do FileType["filename"] and filename doesn't exist in the current working directory you will get the result None. -- To reply via email subtract one hundred and four