Writing Arraylist to file

Discussion in 'Plugin Development' started by Ahniolator, Sep 18, 2011.

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

    Ahniolator

    I've got block objects in an array list and I keep getting NotSerializable errors when I try to save it to a file. Any suggestions/alternatives? I'm kind of stuck right now :/
     
  2. Offline

    Daniel Heppner

    You can't write block objects to a text file. You have to do something like write the name of the block down then later convert it back into a block somehow. You can only record primitive types to text files, so you have to convert it to one of these.
     
Thread Status:
Not open for further replies.

Share This Page