private void splitFile()
	{
		/*Open source file  _fileName */
		File srcFile = new File(_fileName);
		
		/*Load the bytes of _fileName to fileBytes array */
		byte[] fileBytes = new byte[_fileSize];
		long bytesRead=0;
		DataInputStream dis = null;
		try {
		    dis = new DataInputStream(new FileInputStream(srcFile));
			bytesRead = dis.read(fileBytes,0,_fileSize);
		} catch (FileNotFoundException e) {
			logger.info(e);
			e.printStackTrace();
		} catch (IOException e) {
		    logger.info(e);
			e.printStackTrace();
		} 
		if(bytesRead<_fileSize){
			logger.info("Could not read "+_fileName+" Completely");
			return;
		}
		
		/* writing the file into pieces */
		for(int i=0;i<_totalPieceCount;i++){
			try {
				OutputStream out = new FileOutputStream(_tempDirectory+"/"+i);
				
				/* if last Piece and there is spillOver bytes,
				 * copy only spillOver bytes.
				 */
				if(i+1==_totalPieceCount && _spillOver >0 ){
					out.write(fileBytes,(i*_pieceSize),_spillOver);
					out.close();
					continue;
				}
				out.write(fileBytes,(i*_pieceSize),_pieceSize);
				out.close();
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		
	}