title: Reading input stream from file prints missing characters
body: <p>I am using BufferedReader in java to read characters from an input file. However, the output is unusual. In my code below, I first use scanner to show the contents of the file itself then I use BufferedReader to print each individual character:</p>
  
  <pre><code>import java.util.Scanner;
  import java.io.*;
  //import java.io.File;
  
  public class Inputs
  {
  
  
      public static void main(String[] args)
      {
          System.out.println("Inputs");
          Scanner scan = new Scanner(System.in);
          String input = scan.nextLine();
          System.out.println(input);
          // Open the file
          File file = new File("Simple.java");
          try {
  
              Scanner fileIn = new Scanner(file);
  
              while(fileIn.hasNext()){
                   System.out.println(fileIn.next());
  
                  }
              fileIn.close();
          } 
          catch (FileNotFoundException e) {
              e.printStackTrace();
          }
  
          try{
            // Open the file that is the first 
            // command line parameter
            FileInputStream fstream = new FileInputStream("Simple.java");
            // Get the object of DataInputStream
            DataInputStream in = new DataInputStream(fstream);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            String strLine;
            //Read File Line By Line
            while ((strLine = br.readLine()) != null)   {
            // Print the content on the console
            String character =  Character.toString ((char) br.read());
            System.out.println (character);
            }
            //Close the input stream
            in.close();
              }catch (Exception e){//Catch exception if any
            System.err.println("Error: " + e.getMessage());
            }
  
  
  
  
  
  
      }
  }
  </code></pre>
  
  <p>Below is the output I get, the first tokens displayed are by the scanner but after the highlighted prentices its the BufferedReaders output. It prints 3 spaces then a closed curly bracket then -1 (end). What is the meaning of this?</p>
  
  <p><a href="https://i.stack.imgur.com/d7k3e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d7k3e.png" alt="enter image description here"></a> </p>