该类生成了100万条数据。!!
每条数据数据都是转型完成的10位的长整型
并且该类还用到了了快速排序
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class TestWrite {
public static void main(String[] args) throws IOException,
ClassNotFoundException {
// TODO 自动生成的方法存根
File shorts = new File("e:\\short.txt");
File shorts1 = new File("d:\\short.txt");
if (!shorts.exists()) {
shorts.createNewFile();
}
FileOutputStream _out = new FileOutputStream(shorts1);
long[] a = new long[1000000];
// String _temp = "";
// for (int i = 0; i < a.length; i++) {
// for (int j = 0; j < 10; j++) {
// a[i] = getRandom();
// _temp += a[i];
// _out.write(a[i]);
// }
// if (i < 5) {
// System.out.println(_temp);
// }
// _temp = "";
// }
FileInputStream _in = new F