f = open(filename, 'r')
g = open(filename, 'r')
y = iter(g.readlines())
y.__next__()
for line in f:
    print(line)
try:
    print(y.__next__())
except StopIteration:
    f.close()
g.close()
file access peek ahead