[python-uk] Reading a file of tab-separated values

Mark Summerfield mark at qtrac.eu
Fri Nov 16 09:57:21 CET 2007


On 2007-11-16, Jeremy Nicoll - pyuk wrote:
> Is there a simple way to read a whole (modest sized, parameter) file of
> lines of tab-separated lines into one Python data-structure?

I think the csv module can do this. (Despite its name it can handle any
delimiter you give it.)


-- 
Mark Summerfield, Qtrac Ltd., www.qtrac.eu



More information about the python-uk mailing list