import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
class FISDemo2 {
public static void main(String[] args)
throws FileNotFoundException, IOException {
FileInputStream fis = new FileInputStream("abc.txt");
int data = 0;
while ((data = fis.read()) != -1) {
System.out.println((char) data);
}
fis.close();
}
}