I am making a little program that will read and display text from a document. I have got a test file which looks like this:
12,12,12 12,31,12 1,5,3 ... >
12,12,12 12,31,12 1,5,3 ...
Try storing it in an array
f = open( "file.txt", "r" ) a = [] for line in f: a.append(line)