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:

Wolfram Research (2008), FileExistsQ, Wolfram Language function, https://reference.wolfram.com/language/ref/FileExistsQ.html (updated 2016).

Text

Wolfram Research (2008), FileExistsQ, Wolfram Language function, https://reference.wolfram.com/language/ref/FileExistsQ.html (updated 2016).

CMS

Wolfram Language. 2008. "FileExistsQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileExistsQ.html.

APA

Wolfram Language. (2008). FileExistsQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileExistsQ.html

BibTeX

@misc{reference.wolfram_2024_fileexistsq, author="Wolfram Research", title="{FileExistsQ}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileExistsQ.html}", note=[Accessed: 10-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fileexistsq, organization={Wolfram Research}, title={FileExistsQ}, year={2016}, url={https://reference.wolfram.com/language/ref/FileExistsQ.html}, note=[Accessed: 10-December-2024 ]}