change toy-zip's read/write to fread/fwrite