Read the whole file as a string

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 = infile.readline() infile.close() How it works with a while loop. Look at the . while. loop. ................
................