使用DataInputStream从文件读取长型数据
/** 来 自 NowJava.com - 时代Java **/ import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; public class Main { public static void main(String[] args) { String strFilePath = "C://Folder//readLong.txt"; try { FileInputStream fin = new FileInputStream(strFilePath); DataInputStream din = new DataInputStream(fin); long l = din.readLong(); System.out.println("long : " + l); din.close(); } /** 来 自 时代Java - nowjava.com **/ catch(FileNotFoundException fe) { System.out.println(