Please send questions to st10@humboldt.edu .

#---------------------------------------------------------
# Module name: showguts.py
#              Just experimenting to verify the claim
#                 that when opening no-pathname filenames,
#                 Python looks in the directory where the
#                 script is *running* (not where the script
#                 actually is...)
# By: Sharon M. Tuttle
# last modified: 10-04-05
#---------------------------------------------------------

# because no pathname given, will try to open a file named file1
#    in the directory in which the script is running

input = open('file1', 'r')

# SLIGHT danger here:
#    HOW BIG can file1 be?
#    gotta have enough MEMORY to create a list of ALL of the lines
#        in file1, as written below --- be careful, I think!

for line in input.readlines():
    print line

# ALWAYS 'clean up'

input.close()