From 4dfa16db523c02d6bbdcbc3a74f3dc84ac9cf330 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Oct 2017 13:20:30 -0300 Subject: [PATCH] modified --- samplefile.py | 1 + samplefile.py~ | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 samplefile.py~ 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()