file = open('test.txt', 'rb')while 1: chunk = file.read(10) # read byte chucks if not chunk: break print chunk,for line in open('test.txt').readlines(): print linefor line in open('test.txt').xreadlines():print linefor line in open('test.txt'): print line
Name (required)
email (will not be published) (required)
Website