File: class/Workbook/Examples/Lecture5/scanfile.py
def scanner(name, function): file = open(name, 'r') # create file for line in file.readlines(): function(line) # call function file.close()