Skip to content

Instantly share code, notes, and snippets.

@adaptives
Created September 12, 2011 11:52
Show Gist options
  • Select an option

  • Save adaptives/1211095 to your computer and use it in GitHub Desktop.

Select an option

Save adaptives/1211095 to your computer and use it in GitHub Desktop.
LPTHW - Exercise 15
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("> ");
txt_again = open(file_again)
print txt_again.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment