[Numpy-discussion] Writing arrays to files.

Andrea Riciputi ariciputi at pito.com
Tue Jan 27 09:45:26 CST 2004


Hi,
I need a little help here. I need to write some Numeric arrays (coming 
from some simulations) to ASCII files. I'm sure it's a well known topic 
and I'd be happy not to have to reinvent the wheel. I've both 1-dim and 
2-dim arrays and I'd like to get something like this:

- 1-dim array ASCII file:

0.1 0.2 0.3 etc...

- 2-dim array ASCII file:

0.1 0.2 0.3
0.4 0.5 0.6
etc....

How can I get them?

Thanks in advance,
	Andrea.

---
Andrea Riciputi

"Science is like sex: sometimes something useful comes out,
   but that is not the reason we are doing it" -- (Richard Feynman)





More information about the Numpy-discussion mailing list