title: Opening a text file in Python
body: <p>I am having trouble reading a text file to a list, what I have at the moment is:</p>
  
  <pre><code>lines = open ('dracula.txt', 'r'). readlines ()
  </code></pre>
  
  <p>where dracula.txt is the text file in the same directory as the program, however upon running the program Python comes up with: </p>
  
  <pre><code>No such file or directory: 'dracula.txt'
  </code></pre>
  
  <p>I have no idea why it will not find the text file and read it to a list called lines, does anyone have any ideas?</p>