For reading binary file I recomend using struct package
The solution can be written as follows:
import struct
f = open("myFile.bin", "rb")
floats_bytes = f.read(19 * 4)
# here I assume that we read exactly 19 floats without errors
# 19 floats in array
floats_array = struct.unpack("<19f", floats_bytes)
# convert to list beacause struct.unpack returns tuple
floats_array = list(floats_array)
# array of ints
ints_array = []
while True:
int_bytes = r.read(4)
# check if not eof
if not int_bytes:
break
int_value = struct.unpack("<I", int_bytes)[0]
ints_array.append(int_value)
f.close()
Note that I assumed your numbers are stored in little endian byte order,
so I used "<" in format strings.