Jump to content

Easiest way to store data


The Undefeated

Recommended Posts

4 minutes ago, The Undefeated said:

I have a list of items with their buy limits. My question is, what's the "best" way to store this data for scripts?

I can think of options myself, but not sure if those are the best / simplest. 

Just store it in a .txt file, with item_name:buy_limit on each line. If you need more data than just buy limit for each item, then store as JSON or something.

  • Like 3
Link to comment
Share on other sites

6 minutes ago, Qubit said:

how are you scripter 2 and don't know this..

 

6 minutes ago, dcl1998 said:

.. how would u not know this lol

Can you read?

I can think of options myself, but not sure if those are the best / simplest. 

 

 

25 minutes ago, Explv said:

Just store it in a .txt file, with item_name:buy_limit on each line. If you need more data than just buy limit for each item, then store as JSON or something.

This sounded like the most viable option for me too. JSON is kinda unnecessary for now. (And still have get some better JSON knowledge :doge:

Link to comment
Share on other sites

3 hours ago, PulseImpulse said:

 

how are you a human if you don't know how to read you un-educated prat , read what he said.

wow im uneducated didn't know that. He didn't list any of the options he was thinking of, thus leading me to assume he doesn't know any. He also just said above he doesn't know json, say less.

Link to comment
Share on other sites

4 minutes ago, Qubit said:

wow im uneducated didn't know that. He didn't list any of the options he was thinking of, thus leading me to assume he doesn't know any. He also just said above he doesn't know json, say less.

You again interpret things wrong. I didn't say I don't know JSON, I say I should get more knowledge of it, that doesn't mean I don't know any of it which is not the case.

 

Link to comment
Share on other sites

Yes, JSON takes minutes to pick up. Plus, you would need to download a library to make good use of it in Java I believe. Not sure why you would want to parse through a string and do string operations to get value from x item. 

Serialize hash map would be a one time thing to save the file. Read it each time and instantly get the value from key.

Link to comment
Share on other sites

18 hours ago, dreameo said:

Yes, JSON takes minutes to pick up. Plus, you would need to download a library to make good use of it in Java I believe. Not sure why you would want to parse through a string and do string operations to get value from x item. 

Serialize hash map would be a one time thing to save the file. Read it each time and instantly get the value from key.

This is a weird suggestion

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...