How can I import an array to python (numpy.arry) from a file and that way the file must be written if it doesn\'t already exist.
For example, save out a matrix to a
Another option is numpy.genfromtxt, e.g:
import numpy as np data = np.genfromtxt("myfile.dat",delimiter=",")
This will make data a numpy array with as many rows and columns as are in your file
data