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 -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -