examples/files/read_full_file.py
#!/usr/bin/env python
from __future__ import print_function

filename = 'examples/files/numbers.txt'

f = open(filename, 'r')
lines = f.readlines()   # reads all the lines into a list
f.close()

# print number of lines
print(len(lines))

for line in lines:
    print(line, end="")