#!/user/bin/env python
fname=raw_input('Enter filename:')
print
try:
fobj= open(fname,'r')
except IOError,e:
print "xxx file open error :",e
else:
for eachline in fobj:
print eachline,
fobj.close()
#!/user/bin/env python
fname=raw_input('Enter filename:')
print
try:
fobj= open(fname,'r')
except IOError,e:
print "xxx file open error :",e
else:
for eachline in fobj:
print eachline,
fobj.close()