"Steve" wrote: > I dislike infinite while loops and use: > > for line in file.readlines() > ...do stuff... what makes you so sure that's not an infinite loop? (well, in the current implementation, it isn't: if your file has more than 2147483647 lines, your code won't read all of them... ;-) </F>