[Tutor] <> and chomp

allison.william at comcast.net allison.william at comcast.net
Fri Sep 15 02:06:53 CEST 2006


Thanks for all the responses guys.  I was actually able to figure out the
 
infile = open('infilename.txt', 'r')
for line in infile:

Just wasn't  sure if it was Pythonic or not.
Had no clue about the 

line = line.rstrip('\n')

so thanks again.  I'll get to reading those links.

P.S.
David, I'm sure you're right.   I'll  eventually learn both.


More information about the Tutor mailing list