# a file named "geek", will be opened with the reading mode. file = open('geek.txt', 'r') # This will print every line one by one in the file for each in file: print (each)