@Override
    public void write(String path) {

        BufferedWriter buffer = null;

        long startTime = System.currentTimeMillis();

        try {
            buffer = new BufferedWriter(new FileWriter(path));
            buffer.write(rows + " " + cols + "\r\n");
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    buffer.write(InitsializatorMatrix.roundNumber(this.getValue(i, j), 3) + " ");
                }
                buffer.write("\r\n");
            }
        } catch (IOException e) {
            System.out.println("It is not possible to make record in the specified file.");
        } catch (MatrixIndexOutOfBoundsException ex) {
            Logger.getLogger(MatrixAbstract.class.getName()).log(Level.SEVERE, null, ex);
        }

        try {
            buffer.flush();
            buffer.close();
        } catch (IOException e) {
            System.out.println("Error of input-output.");
        }

        long endTime = System.currentTimeMillis();
        long time = endTime - startTime;

        System.out.println("Recording of the file lasted " + time + " ms.");
    }