Using the Python array, I can initialize the 32 487 834 integer array (found in the HR.DAT file) using the following commands (not quite Pythonic, of course):
F = open('HR.DAT','rb')
HR = array('I',F.read())
F.close()
I need to do the same in ctypes. So far, the best I have is:
HR = c_int * 32487834
I am not sure how to initialize each element of the array with HR.DAT. Any thoughts?
Thank,
Mike
source
share