FileExistsQ

FileExistsQ["name"]

gives True if the file with the specified name exists, and gives False otherwise.

Details

Examples

open allclose all

Basic Examples  (2)

Check if a file exists:

Create a file:

Check if the file exists:

Delete the file:

Scope  (1)

Check if the file specified by the File object exists:

Introduced in 2008
 (7.0)
 |
Updated in 2016
 (11.0)