f = open(argument, 'r') #open the CUE sheet data = f.read() #read the CUE sheet f.close() #close the CUE sheet lines = data.split("\n") #split into lines