使用DataOutputStream长写入文件
import java.io.DataOutputStream;//NowJava.com - 时 代 Java import java.io.FileOutputStream; import java.io.IOException; public class Main { public static void main(String[] args) { String strFilePath = "C://Folder//WriteLong.txt"; try { FileOutputStream fos = new FileOutputStream(strFilePath); DataOutputStream dos = new DataOutputStream(fos); long l = 65; dos.writeLong(l); dos.close(); } catch (