private File createDirAndFile(String path) {
		int index = path.lastIndexOf(File.separator);
		String dirpath = path.substring(0, index);
		File dir = new File(dirpath);
		if (!dir.exists())
			dir.mkdirs();
		File file = new File(path);
		try {
			file.createNewFile();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return file;
	}