Forums

Reading from dropbox not working

Hey,

My current directory structure looks something like this:

home

---- tolo137

--------Dropbox

------------testing

--------mysite

------------testWrite.py

I'm trying to use testWrite.py to write to a file testFile.txt in my Dropbox folder, similarly I would like to also read from testFile.txt using testWrite.py.

So far I thought it would just be a matter of:

f = open('/home/tolo137/Dropbox/testing/testFile.txt', 'a')
f.write("Hello World!")

However, this doesn't work at all for some reason.

Kind Regards, Tolo137

That should work fine. Do you get an error message? If so, what is it?