"Teresa Stanton" <[EMAIL PROTECTED]> 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. _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor