Hello!! I want to read a file in order to return it from my Mobile Web Server. However,it does not read the data. I had some error that said that i didnt have permission to access the file... Here is the code

def handler(req):
from mod_python import apache
f=open('file.txt', 'w')
req.content_type='text/html'
req.write("<html>Reading")
line=f.readline()
req.write(line)
f.close()
req.write("</html>")
return apache.OK

Thanks in advance