> I've been trying to use the function file() to detect if a certain file > is in the current path, but i've been receiving an error message. > > What is the correct funtion? I've already used fileexists(), but it's > not correct also. Please post the code you used. FileExists() does not print an error message.