public static void main(String[] args) throws IOException
{
FileReader fr=new FileReader("demo.txt");
int ch=0;
while((ch=fr.read())!=-1)
{
System.out.println((char)ch);
}
}
}
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at java.io.FileReader.<init>(FileReader.java:58)
at aaa.Test7.main(Test7.java:14)