public class Main {
public static void main(String[] args) {
File file = new File("C:\\file.txt");
try {
...
int i;
while((i = input.read()) != -1){
System.out.print((char)i);
}
}
catch (Exception ex) {
System.out.println("Exception");
}
}
}
Login in to like
Login in to comment