public void inputFileTxtFormat(String filePath, String[][] metrix)
			throws IOException {

		File toFile = new File(filePath);
		FileOutputStream fos = null;
		BufferedWriter bw = null;
		OutputStreamWriter osw = null;

		// жļ·ԼļǷڣǲĻֱӴļ·,֮Ѱңֱִд

		if (!toFile.exists()) {// ļ·ڵĻ
			toFile.createNewFile();
		}

		fos = new FileOutputStream(toFile);
		osw = new OutputStreamWriter(fos);
		bw = new BufferedWriter(osw);
		int line = metrix.length;
		int cols = metrix[0].length;
		for (int i = 0; i < line; i++) {
			for (int j = 0; j < cols; j++) {
				if (j != (cols - 1)) {
					bw.write(metrix[i][j] + "  ");
				} else {
					bw.write(metrix[i][j] + "\n");
				}
			}
		}

		if (bw != null) {
			bw.close();
			bw = null;
		}
		if (osw != null) {
			osw.close();
			osw = null;
		}
		if (fos != null) {
			fos.close();
			fos = null;
		}

	}