title: writing to a text file but the contents of the file is not readable
body: <p>I want to write the numbers to a file. The programs runs without any errors but when I open the file that I wrote to, the contents of the file is something like "<strong>!"#$%&amp;'()*+,-./0123456789:;&lt;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈ</strong>".</p>
  
  <p>I cross-checked by reading the contents of the file using FileInputStream and printing the contents. The IDE prints the desired output but the integers in the file are not stored in readable form.
  Can anyone tell me why the integers are not populating in the file as intended?</p>
  
  <pre><code>import java.io.*;
  
  
  public class Main {
  
      public static void main(String[] args) throws IOException{
  
          try{
          FileOutputStream fos = new FileOutputStream("Exercise_19.txt");
  
          for(int i = 0;i&lt;=200; i++){
              fos.write((int)i);
          }
          fos.close();
          }
          catch(IOException ex){
          ex.printStackTrace();
          }
  
      }
  </code></pre>