Jump to content

Read a file character by character/UTF8: Difference between revisions

m
→‎{{header|Python}}: Fixed language in template
m (→‎{{header|Python}}: Fixed language in template)
Line 351:
=={{header|Python}}==
{{works with|Python|2.7}}
{{incorrect|PYthonPython|It reads the file byte by byte not character by character.}}
<lang python>
with open(filename,"rb") as f:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.