title: Trying to use fwrite to write a string in binary/hex in C
body: <p>I'm trying to write a string out to a file in hexadecimal form. </p>
  
  <p>For example, if I have the string:   "Hello" </p>
  
  <p>I want it to be outputted to the file as:    4845 4C4C 4F.</p>
  
  <p>I know the function to use is fwrite, but when I use fwrite, it writes the string as "Hello" instead of the binary representation. </p>
  
  <p>I use the following function to try and convert it: fwrite(buffer, 1, 5, output), where buffer is the string "Hello", output is the destination file, 1 is the size of a character, and 5 is the number of times I want to write. </p>
  
  <p>Thanks!</p>