reading from binfile blocks writing to the file for obvious reasons