Resolved Parsing data from text file

Discussion in 'Developer Support' started by Pure_, Jun 24, 2016.

  1. I want to parse a text file packed into my JAR. I would prefer it to be in JSON format and use a library like jackson or gson to parse it, but are we allowed to pack libraries into our JARs (and release them on the sdn)? Or perhaps there's a standard way that I should know about?

    If there is no alternative I guess scanner/regex/etc. should be fine.
     
  2. Best Answer:
    Post #2 by SlashnHax, Jun 25, 2016
  3. You don't send jars to the bot store.

    There are other ways to save/load data. You could use the ManagedProperty available in getSettings(), you could create a file in Environment.getStorageDirectory().

    If you want to use json, then you would be best off using a small json library like minimal-json.
     

Share This Page

Loading...