import java.io.*;
class readchar
{
public static void main(String a[])
{
FileReader ins=null;
int b;
try
{
ins=new FileReader(a[0]);
while((b=ins.read())!=-1)
{
System.out.println((char)b);
}
ins.close();
}
catch(IOException e)
{
System.out.println(e);
}
}
}
class readchar
{
public static void main(String a[])
{
FileReader ins=null;
int b;
try
{
ins=new FileReader(a[0]);
while((b=ins.read())!=-1)
{
System.out.println((char)b);
}
ins.close();
}
catch(IOException e)
{
System.out.println(e);
}
}
}
No comments:
Post a Comment