Since the reading here is standard, I'd recommend not to use `fromfile` but rather just read `int8`, or `float32`, as appropriate.