Re: large array in a single line

2009-05-26 Thread karthik167
On May 26, 7:26 pm, Arnaud Delobelle wrote: > karthik...@gmail.com writes: > > I would like to have a txt file of single line with > > [1 2 3 .100] > > > I try something like > > q=arange(100) > > fl=file('tmp.ext','w') > > fl.writelines(str(q)) > > fl.close() > > > Unfortunately my output

large array in a single line

2009-05-26 Thread karthik167
I would like to have a txt file of single line with [1 2 3 .100] I try something like q=arange(100) fl=file('tmp.ext','w') fl.writelines(str(q)) fl.close() Unfortunately my output is [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3