I have read the answers for this question but I'm wondering if there is a better way to do this using standard c++ libs? Preferably without trying to open the file at all.
Edit: Thanks for the answers so far, but I'm still stuck... Both "stat" and "access" is pretty much ungoogleable. What should I #include to use these?