exists()
Description
Tests whether a file or directory exists on the SD card.
Syntax
SD.exists(filename)
Parameters
filename: the name of the file to test for existence, which can include directories (delimited by forward-slashes, /)
Returns
true if the file or directory exists, false if not
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
