is_readable() tells you whether you can read a file.
<? if ( is_readable( "data.txt" ) ) { print "data.txt is readable"; } ?>