Quote Originally Posted by Flotonic View Post
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!
Look at fprintf() in your library documentation...

If you have the 2 byte value in a short int you can easily print it to the file as decimal, hex, or octal.
If it's in a string you can just print it directly to the file.

Really... this isn't hard.