Construct the program that reads and prints input data char by char.
Use < and > to adjust a code tabulation. Set a single tab for the loop body.
Construct the program that reads and prints input data char by char.
Use < and > to adjust a code tabulation. Set a single tab for the loop body.
current = reader.read();
System.out.print((char) current);
}
int current = reader.read();
Reader reader = new FileReader("file.txt");
while (current != -1) {
reader.close();
Create a free account to access the full topic