SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top