examples/files/read_full_file.py
from __future__ import print_function

filename = 'examples/files/numbers.txt'

with open(filename, 'r') as fh:
    lines_list = fh.readlines()   # reads all the lines into a list

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

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