Advertisement
Guest User

Untitled

a guest
May 4th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. 1 from sys import argv
  2. 2
  3. 3 script, filename = argv
  4. 4
  5. 5 txt = open(filename)
  6. 6
  7. 7 print "Here's your file %r:" % filename
  8. 8 print txt.read()
  9. 9
  10. 10 print "Type the filename again:"
  11. 11 file_again = raw_input("> ")
  12. 12
  13. 13 txt_again = open(file_again)
  14. 14
  15. 15 print txt_again.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement