python - Changing a read-only file -


i need change text documents. way i've been doing making new file, copying line line old file , making changes on way, saving new file old file's name. becomes problem when have read permission on file. first oserrno 30, not letting me delete old file @ end of writing. if change open command 'r+', says file not found. don't have root access. know of workaround problem?

edit: responses. guess intended behavior of read-only file...

yes, right,
can read
cannot write.


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -