Basically I'm working on a html server assignment and part of the assignment is giving an "error 403 FORBIDDEN" message and although I know how to check if the file exist how can I check if its forbidden.

What I'm doing is this for opening a file.

```
File* filein = fopen(pathname,"r");

```

Just let me know what I can do to check if the file is forbidden.