How to save objects to a file? [SOLVED]

Discussion in 'Plugin Development' started by kabbage, Feb 23, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    kabbage

    I've been trying to figure this out, but there doesn't seem to be a guide to doing this simply. How would I save an object, any object, to a file?
     
  2. Offline

    acuddlyheadcrab

    Object like a java object? The extend of my experience is to use YML files to store info. If you can turn something into a String/Char, int (or other number), boolean, or any collection/list/array of these types you can save it to a YML file.
     
  3. Offline

    kabbage

    So there's no way to store the actual object directly?
     
  4. Offline

    stelar7

  5. You can use ObjectInputStream and ObjectOutputStream
     
  6. Offline

    kabbage

Thread Status:
Not open for further replies.

Share This Page