Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void writeToFile(String filename, Object object) throws Exception {
- FileOutputStream fout = new FileOutputStream(new File(filename));
- ObjectOutputStream oout = new ObjectOutputStream(fout);
- oout.writeObject(object);
- oout.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement