Read/write 2D data from/to file..?

mech point srikanth.allu at gmail.com
Sun Feb 11 20:47:30 EST 2007


I was able to read the data from file into a two dimensional array
(lists)

rows=[map(float,line.split())for line in file("data")]

but How to write them back into the file.

Thank you,
srikanth




More information about the Python-list mailing list