FileReader reader = new FileReader ("input.txt"); int next = reader.read() char c; if (next != -1) c = (char)next(); ... reader.close()