I have a binary file that contains a column of values. Using Python 3, I'm trying to unpack the data into an array or list.
file = open('data_ch04.dat', 'rb')
values = struct.unpack('f', file.read(4))[0]
print(values)
file.close()
The above code prints only one value to the console:
-1.1134038740480121e-29
How can I get all of the values from the binary file?
Here's a link to the binary file on Dropbox:
https://www.dropbox.com/s/l69rhlrr9u0p4cq/data_ch04.dat?dl=0