how to read a tab delimited file
Steven Bethard
steven.bethard at gmail.com
Wed Mar 16 00:57:27 EST 2005
> Peter Hansen wrote:
>
>>jrlen balane wrote:
>>
>>>how would i read a tab delimited file? at the same time put what i
>>>read in an array, say for example that i know that the file is an
>>>array with column= 5 and row=unknown.
>>
>>Use the "csv" module. Although that stands for "comma
>>separated values", it readily supports alternative
>>delimiters such as TAB.
jrlen balane top-posted:
> if i am going to do this, how should i continue:
> how would i know the end of file?
Look at the examples in the docs:
http://docs.python.org/lib/node617.html
STeVe
More information about the Python-list
mailing list