public static void fileSet(Matrix M){//not ready
        try {
            FileInputStream fileStream = new FileInputStream("test.txt");
            Scanner scanner = new Scanner(fileStream);
            ArrayList<String> lines = new ArrayList();
            int t=0;
            int s=0;
            int i=0;
            while (scanner.hasNextLine()) {
                lines.add(scanner.nextLine());
                if (i==0) {
                    t= countSpace(lines.get(0));
                }else{
                    if (countSpace(lines.get(i))!=t){
                        System.out.println("file matrix is disproportional");
                    }
                }
                i++;
            }
            int j=0;
            int k=0;
            M.setMatrix(i, t + 1);
            for (j=0;j<i;j++){
                for (k=0; k<t+1; k++){
                    M.set(j + 1, k + 1, 1);//////////////////////////here is the place, i can't read double from string
                }
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }