Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. public void salvaD(String fileName, Dipendente dipendente) throws IOException{
  2.        
  3.        
  4.         String temp="marco";
  5.         FileOutputStream fileOutputStream = null;
  6.         fileOutputStream = new FileOutputStream("file.txt");
  7.         ObjectOutputStream objectOutputStream = null;
  8.         objectOutputStream = new ObjectOutputStream(fileOutputStream);
  9.         objectOutputStream.writeObject(temp);
  10.         objectOutputStream.close();
  11.         fileOutputStream.close();
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement