• Member for 6 years, 10 months
  • Last seen more than 5 years ago
1 answers
2 votes
To ensure the file is readable
Accepted answer
2 votes

This can be done by using "access", as suggested in the pset sheet. e.g. use access(path, R_OK) to check if the file is readable, and it'll return 0 if readable and return -1 if not. consult ...

View answer