File tempDir = new File(file.getParent(), ".temp");
tempDir.mkdir();
long partLen = file.length() / 3 + 1;
FileInputStream fis = new FileInputStream(file);
for (int i = 0; i < 3; i++) {
FileOutputStream fos = new FileOutputStream(new File(tempDir, i + ""));
byte[] buffer = new byte[(int) partLen];
int len = fis.read(buffer);
fos.write(buffer, 0, len);
fos.close();
}
fis.close();