Anonymous user
Read a file character by character/UTF8: Difference between revisions
Read a file character by character/UTF8 (view source)
Revision as of 21:03, 10 February 2014
, 10 years ago→{{header|Python}}: Python 2 is incorrect
(→{{header|Python}}: Added Python 3 version) |
(→{{header|Python}}: Python 2 is incorrect) |
||
Line 323:
=={{header|Python}}==
{{works with|Python|2.7}}
{{incorrect|PYthon|It reads the file byte by byte not character by character.}}
<lang python>
with open(filename,"rb") as f:
|