[Tutor] how to read from a txt file

Kent Johnson kent37 at tds.net
Thu Feb 17 11:42:48 CET 2005


Brian van den Broek wrote:
> So, sorry, I don't know what's wrong with the code you sent me, and I 
> fear that if I tried to work it out, I'd do more damage. I yield the 
> floor as I am off to write "Don't post untested code 1000 times.

for i in range(1000):
   print "Don't post untested code"

(tested, seems to work OK)

:-)

Kent



More information about the Tutor mailing list