title: Writing Hexadecimal and Binary Values to File
body: <p>How can I write hexadecimal and binary values (not their string representation) to a file? For example, how can I write the hexadecimal value 1A (26 in decimal) to a file? </p>
  
  <p>Previously, I've tried using a BufferedWriter.</p>