Opening Hours :7AM to 9PM
FileInputStream fis=new FileInputStream("abc.txt");In the above statement will open the file in reading mode.If the file is not available at given location an error will be generated.
import java.io.*; import java.util.*; public class fileinputstreamDemo { public static void main(String args[]) throws IOException { FileInputStream fis=new FileInputStream("abc.txt"); //System.out.println((char)fis.read()); //one character int i; while((i=fis.read())!=-1) { System.out.println((char)i); } } }