Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import argv
- script, filename = argv
- txt = open(filename)
- print "Here's your file %r:" % filename
- print txt.read()
- print "Type the filename again:"
- file_again = raw_input("> ") # file_again is an assignment of the raw_input() prompt
- txt_again = open(file_again)
- print txt_again.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement