Jump to content

Easiest way to store data


Recommended Posts

Posted
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
Posted
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:

Posted
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.

Posted
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.

 

Posted

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.

Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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