examples/files/read_file_remove_newlines.py
from __future__ import print_function

filename = 'examples/files/numbers.txt'

with open(filename, 'r') as fh:
    for line in fh:
        line = line.rstrip("\n")
        print(line)