Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i=0;
- Datab[] b = null;
- //b = null;
- // The name of the file to open.
- String fileName = "datt.dat";
- try {
- // Use this for reading the data.
- byte[] buffer = new byte[1000];
- FileInputStream FileIS = new FileInputStream("datt.dat");
- ObjectInputStream input = new ObjectInputStream(FileIS);
- for(i=0; i<b.length; i++)
- b[i]=(Datab)input.readObject();
- input.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement