Checking if a file in the folder

hi @dlichtenstadt,

string files = System.IO.Directory.GetFiles(path, “filename.*”);
if (files.Length > 0)
{
//file exist
}

Refer to this for more info :


Mukesh

1 Like