public static void main(String[] args) 

{

try {

FileReader reader = new FileReader("text.txt");

int c;

while((c = reader.read()) != -1)

{

System.out.println((char)c);

}

catch (FileNotFoundException e) 

{

} catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}


}

+ Recent posts