Skip to content

Commit

Permalink
added exercise 15 and sample text file
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarkentin committed Jan 9, 2011
1 parent 928b223 commit 843d396
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ex15.py
@@ -0,0 +1,15 @@
from sys import argv

script, filename = argv

txt = open(filename)

print "Here's your file %r:" % filename
print txt.read()

print "I'll also ask you to type it again:"
file_again = raw_input("> ")

txt_again = open(file_again)

print txt_again.read()
3 changes: 3 additions & 0 deletions ex15_sample.txt
@@ -0,0 +1,3 @@
This is stuff I typed into a file.
It is really cool stuff.
Lots and lots of fun to have in here.

0 comments on commit 843d396

Please sign in to comment.