i have a very simple program which takes in file name as argument and print the content of the file , but for some reason it isnt working
here is the code
import sys ,os
def Cat(filename):
f = open(filename)
text = f.read()
print '----', filename
print text
def main():
args = sys.argv[1:]
for arg in args:
Cat(arg)
i would be glad , if u could help me out .....