get subset from binary file