Read char from file using DataInputStream
import java.io.DataInputStream; import java.io.FileInputStream; public class Main { public static void main(String[] args) throws Exception{ FileInputStream fin = new FileInputStream("C:/Char.txt"); DataInputStream din = new DataInputStream(fin); char ch = din.readChar(); System.out.println("Char : " + ch); din.close(); } }