I've saved an numpy array using savetxt and given the array a header. When I read the file using loadtxt, the header is ignored and only the data is saved in my new array. How can I access the header as it has important information I want to save as a string.
Edit:
np.savetxt(file_name, array, delimiter=",", header='x,y,z, data from monte carlo simulation')
data = np.loadtxt('test', dtype=float, delimiter=',')
I want to get "data from monte carlo simulation" and save it as a string.