Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Parsing data from text file

Joined
Apr 22, 2016
Messages
13
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.
 
Joined
Dec 10, 2014
Messages
3,332
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.
 
Top