I'm trying to write a numpy array into txt file:
a = numpy.array([1,2,3])
numpy.savetxt('a.txt',a,fmt='%.3f')
when I open the txt file it looks like:
1.0002.0003.000
but when I paste it in word it looks like:
1.000
2.000
3.000
The problem is that another program reads the txt file as input line by line:
data = fid.readlines()
As a result it doesn't work correctly.How can I fix this problem?