reading fields from files in python without \t \n
PyGurus,
When I do readlines onto a file, with several columns, it returns it with
data\t\n. I would like to have the first column in a array, second one in another
and so on.
First is that I would like to strip these characters \t\n,
Second allocating the column to an array.
finp=open("test1.dat","r")
lines=finp.readlines()
I would appreciate some pointers.
Thanks
DTC.
|