title: How to store SHA1 output to a file using C
body: <p>I have computed the <code>SHA1</code> for a piece of data and I need to store it into a file to be read by another person later. The <code>SHA1</code> gives the output as <code>190 bit's</code>, but I can't store as bits into a file, <code>fputc()</code> function does it characters which means bytes.</p>
  
  <p>So I want to either store it as bytes into the file or as its <code>hexadecimal</code> representation (preferably). In <code>C</code>, so far I can only get it to print the hash to the terminal as the hexadecimal representation (using a way I found in another question posted in this site), but I can't figure out how to store it to a file properly.</p>
  
  <p>Please help!</p>