diff --git a/samplefile.py b/samplefile.py index 326d59a..180872e 100644 --- a/samplefile.py +++ b/samplefile.py @@ -1,3 +1,4 @@ +#tool imports files to script from sys import argv script , filename =argv txt=open(filename) diff --git a/samplefile.py~ b/samplefile.py~ new file mode 100644 index 0000000..326d59a --- /dev/null +++ b/samplefile.py~ @@ -0,0 +1,9 @@ +from sys import argv +script , filename =argv +txt=open(filename) +print "here is your file %r" %filename +print txt.read() +print "i'll also ask you to type it again" +fi=raw_input("> ") +tx=open(fi) +print tx.read()