java - Storing an array so that I can access it the next time I run the program -


i have array

string[][] somearrayofdata={{"there","is"},{"alot","of data here"}}; 

i want able save array can load , access next time run program. dont mind having use string[] well. have tried write notepad file major irritation, possible store variables externally avoid hassle of writing multiple notepad files or using delineators?

there multiple possibilities. in cases called persistence.

  1. store file store file
  2. store database java db tutorial
  3. send somewhere simple rest web service , client

in principle 3 not persistence, way data out of volatile memory.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -