title: Opening a text file from the private folder in web2py
body: <p>I need to open a database (in .txt format) for my search engine script in web2py.</p>
  
  <p>I can not access the online database, because I use the free version of pythonanywhere.</p>
  
  <pre><code>import urllib
  infile=urllib.urlopen('http://database.net')
  for line in infile:
  </code></pre>
  
  <p>Now I uploaded the database to the "private" file folder and I wonder how get access it. It looks like a simple question, but I can't seem to work it.</p>
  
  <p>I need something like this:</p>
  
  <pre><code>infile = open('searchapp/private/database.txt')
  for line in infile:
  </code></pre>
  
  <p>What is a good solution?</p>