How to check if a file is exist in data folder by code?

File f = dataFile("DoIExist.txt");
String filePath = f.getPath();
boolean exist = f.isFile();
println(filePath, exist);
3 Likes