Permission Denied Error Python
<p>I am new to python and I am trying to open a file that contains a number of documents. I am using visual studio, this file is in the current directory (the same directory of the project files which are in) and I have added the file to the project in the IDE. The line of code is below:</p>

<pre><code>file = open("name_of_file")
</code></pre>

<p>I am getting the following error: <code>[Errno 13] Permission denied: 'name_of_file'</code></p>

<p>I hope this is a very simple fix? I tried to google it and look at some of the other posts, but had trouble following them. What are the reasons why this would happen?</p>