If it does not contain pure numbers like this:
1 2 3 4
5 6 7 ......
then the file contains a serialized object.
Can you post part of the file's content?
Who gave you this file?
Where you told how it was created?
What object does it have inside?
When you will learn how to create objects, if you have them implement the java.io.Serializable interface, you can save into files and read them like this:
http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectInputStream.html
http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectOutputStream.html
try {
FileInputStream fis = new FileInputStream("filename");
ObjectInputStream ois = new ObjectInputStream(fis);
Object obj = ois.readObject();
// OR IN YOUR CASE
// int [][] array = (int [][])ois.readObject();
ois.close();
} catch (Exception e) {
System.out.println("Error: "+e.getMessage());
}
But first you need to answer me the above questions.
What kind of file do you have?