I have a file open in write mode where this specific format output will be written:
fpw = fopen(argv[argc - 1], "wb"); if (fpw == NULL) {