Now uses memcpy to copy each struct read from the file and the writes them to a binary file. Need to check that the write is successful then be able to read from this file.