import java.io.*; class Readfile{ public static void main(String args[])throws IOException { FileInputStream fis=new FileInputStream ("A.txt"); int ch; while((ch=fis.read())!=-1) System.out.print((char) ch); fis.close(); } } in this program why we use first int for ch and after we use char for ch why??? | 0 |