Skip to content

Instantly share code, notes, and snippets.

@rturowicz
Last active December 15, 2015 19:49
Show Gist options
  • Save rturowicz/5314382 to your computer and use it in GitHub Desktop.
Save rturowicz/5314382 to your computer and use it in GitHub Desktop.
read / write utf-8 files
import codecs
infile = codecs.open("file", "r", "utf-8")
line = infile.readline()
while line:
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment