Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. int i=0;
  2. Datab[] b = null;
  3. //b = null;
  4.  
  5. // The name of the file to open.
  6. String fileName = "datt.dat";
  7.  
  8. try {
  9. // Use this for reading the data.
  10. byte[] buffer = new byte[1000];
  11. FileInputStream FileIS = new FileInputStream("datt.dat");
  12. ObjectInputStream input = new ObjectInputStream(FileIS);
  13.  
  14. for(i=0; i<b.length; i++)
  15. b[i]=(Datab)input.readObject();
  16.  
  17. input.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement