Function to write two bytes at a time to a file?
First, two bytes are read and combined at a time from a file, so 7F FF (two separate values) becomes one value, 7FFF. That part has already been done. However, I'm looking for a means of injecting those bytes into a new file. I've tried fputc, but that only injects one character at a time. I've also tried fputs, but that only works for strings; the values are stored as integers in this case.
Any tips for injecting these double-byte values into a file? Help is much appreciated!