# Reading a file f = open(__file__, 'r') #readline() text = f.readlines(25) for p in text: print(p) f.close()