book open('treasure txt'' 'for line in book treat it like list being able to read single line of file is all very well converting an entire book into list of its lines might prove to be unwieldy what is the typical way to do itgiven that files can be treated like lists the easiest way to process each line of file is with for loop