how to read in an array in text file?

Yun Mao maoy at cis.upenn.edu
Sun Nov 9 00:11:20 EST 2003


Hi, what's the easy way of reading in a two-dimentional array from a text
file?
The text file looks like this:
0.1 1.1 2.3 12.1
0.3 33.0 4.1 1.1

I'm using Numeric Python now. Other solutions are also welcome. Thanks a
lot!
Yun






More information about the Python-list mailing list