I have a wallop of a string with many lines. How do I read the lines one by one with a for clause? Here is what I am trying to do and I get ... ... <看更多>
read () will read in the entire file as a single string of text. infile.readline() will read in one line at a time (each time you call this command, it reads in ... ... <看更多>