I use the function of "DataInputStream" called "readLong()" to read value from a file end with ".txt". This file was edited in advance. I want to get the correct value "123456789", but the answer is "3544952156018063160"
DataInputStream di = new DataInputStream(new FileInputStream("E:\\CMHI\\LocalHost\\src\\t.txt"));
Long res = di.readLong();
System.out.println(res);
di.close();