Results 1 to 3 of 3
  1. #1
    jsobel is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default Saving java application data

    What would be the easiest way to save my java games progress to a file so i can read it and use it later serialization will not work because im using several objects and fields any external libraries that are free are fine

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Saving java application data

    Figure out the minimum amount of data you need to save.
    If it's a handful of numbers then just save those, if it's a whole load of state (think some strategy games) then you'll have to come up with a structure to hold that.

    I am curious, though. Why does serialisation not work?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    javin.paul is offline Banned
    Join Date
    Oct 2011
    Rep Power

    Default Re: Saving java application data

    If you have more sophisticated data like user preferences as well, you can probably consider using xml files for storing data. Benefit of using xml is that you will get lot of open source library to work with but as Tolls pointed out it depends upon how much data you are saving, more small piece of data it would be overkill.

Similar Threads

  1. Replies: 1
    Last Post: 02-10-2012, 02:44 PM
  2. Hi! Saving data??
    By Gahstanz in forum New To Java
    Replies: 1
    Last Post: 06-29-2010, 06:29 AM
  3. What do you use for saving data from table?
    By ocean in forum New To Java
    Replies: 1
    Last Post: 11-21-2009, 08:08 PM
  4. Saving data...?
    By easyRyder in forum New To Java
    Replies: 8
    Last Post: 07-15-2008, 03:14 AM
  5. Saving application settings
    By mwildam in forum New To Java
    Replies: 0
    Last Post: 11-16-2007, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts