1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Parsing data from text file

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

  1. Pure_

    Joined:
    Apr 22, 2016
    Messages:
    13
    Likes Received:
    6
    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. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,216
    Likes Received:
    1,043
    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...