[Tutor] Simple text file processing using fileinput module. "Grabbing successive lines" failure

Flynn, Stephen (L & P - IT) Steve.Flynn at capita.co.uk
Tue Jul 3 10:30:15 CEST 2012


> 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...


Thanks gents - seems the CSV module does everything I require so I'll
get tinkering with it.

Steve.



This email and any attachment to it are confidential.  Unless you are the intended recipient, you may not use, copy or disclose either the message or any information contained in the message. If you are not the intended recipient, you should delete this email and notify the sender immediately.

Any views or opinions expressed in this email are those of the sender only, unless otherwise stated.  All copyright in any Capita material in this email is reserved.

All emails, incoming and outgoing, may be recorded by Capita and monitored for legitimate business purposes. 

Capita exclude all liability for any loss or damage arising or resulting from the receipt, use or transmission of this email to the fullest extent permitted by law.


More information about the Tutor mailing list