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

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -