private static boolean writeFile(String fileAndPath,String fileSeparateName,long blockSize,long beginPos)
	{
		RandomAccessFile randACFile = null;
		FileOutputStream oStream = null;
		byte[] bts = new byte[1024];
		long writeByte = 0;
		int len = 0;
		
		try {
			randACFile = new RandomAccessFile(fileAndPath, "r");
			randACFile.seek(beginPos);
			oStream = new FileOutputStream(fileSeparateName);
			
			while ((len = randACFile.read(bts)) > 0) {
				if (writeByte<blockSize){
					writeByte += len;
					if (writeByte <= blockSize) {
						oStream.write(bts,0,len);
					} else {
						len = len - (int)(writeByte - blockSize);
						oStream.write(bts,0,len);
					}
				}
			}
			
			oStream.close();
			randACFile.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			try {
				if (oStream != null) oStream.close();
				if (randACFile != null) randACFile.close();
				
			} catch(Exception e2) {
				return false;
			}
			return false;
		} 
		
		return true;
	}