On 02/07/12 18:39, David Rock wrote:
Essentially, your problem isn't with using fileinput, it's with how you handle each line that comes in.
The immediate problem is with mis-using fileinput. But once you solve that you then have to deal with the other issues David raises. Once more I recommend the csv module... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor