Skip to content

Instantly share code, notes, and snippets.

@haradreborn
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haradreborn/dd94a196db4ff39a3c7a to your computer and use it in GitHub Desktop.
Save haradreborn/dd94a196db4ff39a3c7a to your computer and use it in GitHub Desktop.
Replace characters in file
def replace(self, file_from, file_to):
data = open(file_from, 'rb')
res = open(file_to, 'wb')
for line in data:
res.write(line.replace('"', '\''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment