Read a file character by character/UTF8: Difference between revisions
Content added Content deleted
(→{{header|Common Lisp}}: Added C) |
m (→{{header|Python}}: Fixed language in template) |
||
Line 351: | Line 351: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
{{works with|Python|2.7}} |
{{works with|Python|2.7}} |
||
{{incorrect| |
{{incorrect|Python|It reads the file byte by byte not character by character.}} |
||
<lang python> |
<lang python> |
||
with open(filename,"rb") as f: |
with open(filename,"rb") as f: |