So I saw an answer in another question saying that this should work:
using System.IO;
if (File.Exists(Path))
{
Action();
}
However, when I do this, I get these errors:
'System.IO' is a 'namespace', which is not valid in the given context
The Name 'File' does not exist in the current context
What am I doing wrong?
Either Add
using System.IO;at top of your fileOr
use it like