I need to read data from binary files. The files are small, of the order of 1 MB
, so it's probably not efficient to use binaryFiles()
and process them file by file (too much overhead).
I can join them in one big file and then use binaryRecords()
, but the record size is just 512 bytes
, so I'd like to concatenate several records together, in order to produce chunks of the size of tens of megabytes. The binary file format allows this.
How can I achieve this? More in general: Is this the right approach to the problem?
Thanks!