# simple data source on hard disk for android game

i have a big library on my game. its word library. there is no need of it to be on ram.any moment some part of it can be searched so there is no need to make a list or dictionary for it. is there any type of file data that can be added to apk file?

• If I understand correctly, would it work to simply include the file with all the words in it (so its not loaded in ram) and then have a script file that can search it for specific words (which will load the word file into ram when you need it) ? Aug 22 '18 at 13:29
• @TomTsagk yes you are right Aug 22 '18 at 13:47

You can have a separate file with all the data you need (the words) which can be in any format you like (a raw text file, or a json file etc), then you'll need one script file, to access that data and load/unload the file at will. The script file can be structured to call first LoadFile() and then FindWord(String word) followed by UnloadFile(), to make sure the data are not in ram when not needed. This assumes you will need to find plenty words in a short period of time (like a bunch of words for every stage of a game?).