It is necessary to read a two-dimensional array from a file (written in binary form), found the code for the recording function in one of the forums, but the topic was created a long time ago and no one has yet responded. Help to write the read function, provided that the variable this.Array is declared in the class.
public boolean Save(String path) { try { DataOutputStream out = new DataOutputStream(new FileOutputStream(path)); for (byte i=0; i<this.Array.length;i++) { for (byte j=0;j<this.Array[0].length;j++) { out.writeInt(this.Array[i][j]); } } return true; } catch (IOException e) { return false; } }