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

Re: large array in a single line

2009-05-26 Thread Ken Seehart
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 is [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13

Re: large array in a single line

2009-05-26 Thread Dave Angel
karthik...@gmail.com wrote: 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

Re: large array in a single line

2009-05-26 Thread Robert Kern
On 2009-05-26 09:18, karthik...@gmail.com wrote: 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

Re: large array in a single line

2009-05-26 Thread karthik167
On May 26, 7:26 pm, Arnaud Delobelle arno...@googlemail.com 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

Re: large array in a single line

2009-05-26 Thread Arnaud Delobelle
karthik...@gmail.com writes: On May 26, 7:26 pm, Arnaud Delobelle arno...@googlemail.com 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))

Re: large array in a single line

2009-05-26 Thread Arnaud Delobelle
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 is [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20