public void CreateBigFile() {
byte[] memFile = new byte[FILE_SIZE];
for (int i = 0; i < FILE_SIZE; i++) {
memFile[i] = (byte) (i % 20);
}
RandomAccessFile randomFile = null;
try {
randomFile = new RandomAccessFile(PATH+FILENAME, "rw");
for (int i = 0; i < BEI_SHU; i++) {
long fileLength = randomFile.length();
randomFile.seek(fileLength);
randomFile.write(memFile);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}