I think this is what you want:

file = open(r'c:/test.txt','r')

c = file.read(3)
while c:
    print c
    c = file.read(3)

file.close();

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to