I'm attempting to open a file in a C application. How do I check that a file exists before trying to read from it?