Question: what is wb in fopen?
Answer: The fopen() function shall open the file whose pathname is the string pointed to by filename, and associates a stream with it. The mode argument points to a string. ... Open file for reading. w or wb. Truncate to zero length or create file for writing.