import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
/*** Created by zangtt on 17-6-30.*/
public class readTxt {public double[][][] readData1(String str,int dim) throws IOException {FileReader fr new FileReader(str);//可以…