Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread George Sakkis
On Oct 21, 1:44 pm, [EMAIL PROTECTED] wrote: > > 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 >

Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread Clovis Fabricio
2008/10/21 <[EMAIL PROTECTED]>: > grrr thanks George, thanks Daniel, that's it. Works fine with real > tabs. Now this brings me to a follow-up: I have not prepared the input > ascii file, I just got if for post-processing (23 MB). Now it seems > that I would have to replace all series of spaces in

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

Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread George Sakkis
On Oct 21, 12:26 pm, [EMAIL PROTECTED] wrote: > 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  2    3.0    4     5.6 > 4  6    77     8.2  19 > > I do > > import csv > asciireader = csv.reader(open('dummy.txt'), delim

Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread Benjamin Kaplan
On Tue, Oct 21, 2008 at 12:26 PM, <[EMAIL PROTECTED]> wrote: > 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('dum