How do I check if a file exists in my program?