summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unicode/file2.py
blob: aca2e0e0ed8eeebbac25286679d8ead7902d767c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test reading a given number of characters

def do(mode):
    f = open('unicode/data/utf-8_2.txt', mode)
    print(f.read(1))
    print(f.read(1))
    print(f.read(2))
    print(f.read(4))
    f.close()

do('rb')
do('rt')