# cat0.py
# Written by Todd Wareham for CS 2500
"""
Given the name of a text file as a command-line argument, prints that
 file to standard output (version using automatic file-read in "for line in 
 file(X)" construct).
"""

import sys

if len(sys.argv) != 2:
    print "usage:", sys.argv[0], " filename"
    sys.exit(1)

for line in file(sys.argv[1]):
    print line.rstrip()
