Use of FileInputStream to read from file

How to read from file using FileInputStream?

import java.io.*;

class FIS{
    public static void main(String[] args) throws IOException{
        //FileInputStream fis=new FileInputStream(“myfile.txt”);
       //the above line of statement can be used in place of below written two lines of code statements.
        File f=new File(“myfile.txt”);
        FileInputStream fis=new FileInputStream(f);
       
        int size;
       
        System.out.println(“Total Bytes : “+ fis.available());
        System.out.println(“Reading… : “+ (size=fis.available()));
       
        for(int i=0; i            System.out.print((char)fis.read());
        }
        /*
        System.out.println(“———————————————————“);
        char[] b=new char[size];
        for(int i=0; i            b[i]=(char)fis.read();
        }
        System.out.print(new String(b));
       
       
        */
       
    }
}