<reponame>MichaelRW/Python-for-Geeks<filename>Chapter04/files/multifilesread3.py
#multifilesread2.py
import fileinput
with fileinput.input(files = ("1.txt",'2.txt') )as f:
    for line in f:
        print(f.filename())
        print(line)
#multifilesread2.py
import fileinput
with fileinput.input(files = ("1.txt",'2.txt') )as f:
    for line in f:
        print(f.filename())
        print(line)
#multifilesread2.py