Sorry for the extreme newbie question, but I honestly can't find this anywhere else. When I do
it is supposed to open the file for reading and writing, according to python's documentation. However, it appears to open the file for reading and appending instead. Is there any way I can open the file for reading and writing, without having to call the method twice?
Code:
f = open('/var/www/some_file', 'r+')
Comment