Read the whole file as a string - Tom Kleen

line = infile.readline()# read one line at a time. Read all lines from the file. infile = open("qb-stats.txt") lines = infile.readlines()#read all lines; returns a list of strings. Reading with a . while. loop. line = infile.readline() while line: values = line.split() print('QB ', values[0], values[1], 'had a rating of ', values[10] ) line ... ................
................