[Numpy-discussion] Appending a numpy array to existing text file
Andy Cheesman
Andy.cheesman@bristol.ac...
Wed Nov 28 04:09:56 CST 2007
It does indeed work
Thanks for the help
Andy
LB wrote:
> If you just want to add your matrix to an existing ascii file, you can
> open this file in append mode and give the file handle to
> numpy.savetxt :
>
> f_handle = file('my_file.dat', 'a')
> savetxt(f_handle, my_matrix)
> f_handle.close()
>
> HTH
>
> --
> LB
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the Numpy-discussion
mailing list