Apr-24-2019, 11:45 AM
(Apr-24-2019, 10:46 AM)Gribouillis Wrote: You know how to write the file but you don't know how to read it? This is somewhat unusual. It is a fairly simple task:
with open(fnam) as f: for line in f: # do something with the line
I want to read the file and store all the values in the arrays as I had computed. For example, acr(i,j) is a two-dimensional array, so I want to read the file and store the value in acr(i,j). I'm sorry, I don't whether I explained it clearly what I want to do. And I'm pretty new to python.
It would be helpful if you can somehow tell me how to do it.
Thank you very much.