json UnsupportedOperation: not writable code example Example: io.UnsupportedOperation: not writable file = open('ValidEmails.txt','w') ... file.write(email)