Existence: call stat(), check for a return code that has no side effects. On UNIX, call access().
You would do this if you just did what you asked if FileA exists, not necessarily I can open it. Example. On UNIX, a file with run-only permissions does not open, but still exists.
stat st_mode . , , fopen open, , .