# -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 21:58:06 2018

@author: Frijke
"""

def problem3_1(txtfilename):
    infile = open(txtfilename)
    
    sum = 0
    
    for line in infile:
        sum = sum + len(line)
        print(line, end= "")
        
    print("\n\nThere are", sum, "letters in the file.")
    
    infile.close()