[Tutor] Command line args

Alan Gauld alan.gauld at btinternet.com
Sat Apr 14 09:28:41 CEST 2007


"Teresa Stanton" <tms43 at clearwire.net> wrote

> No one suggested this.  That's great! Wish I had seen it sooner. 
> Thanks,
> I'll put that in my notebook for further use later.

Note that Fileinput is used to iterate over a (set of) file line by 
line,
it doesn't read the entire file into a string as in your original
question. You can get round that by using join() to join the
lines togvether after reading.

Also there are no prompts to stdin if that matters.

HTH,

Alan G.




More information about the Tutor mailing list