title: How to write a file byte by byte using c++
body: <p>How to write a file byte by byte using c++?</p>
  
  <pre><code>unsigned short array[2]={ox20ac,0x20bc};
  </code></pre>
  
  <p>if i have a hexadecimal value 0x20ac how can i write it byte by byte in a file using c++</p>