csv.reader problem tab-delimiter - newbie

2008-10-21 Thread hidding
Hi all, I use python 2.5 and want to read in a simple 5-columned, tab- delimited ascii file "dummy.txt" such as as 1 23.04 5.6 4 677 8.2 19 I do import csv asciireader = csv.reader(open('dummy.txt'), delimiter='\t') array1 = [] for entry in asciireader: array1.append( e

Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread hidding
> > Most likely the file is not tab delimited. If you used an editor to > produce dummy.txt, check whether it uses soft tabs and disable it > temporarily. > > HTH, > George > Most likely the file is not tab delimited. If you used an editor to > produce dummy.txt, check whether it uses soft tabs an