Processing text using python

danmcleran at yahoo.com danmcleran at yahoo.com
Mon Feb 20 11:36:19 EST 2006


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();




More information about the Python-list mailing list