- Home /
Question by
SuperRaed · Apr 14, 2016 at 06:28 AM ·
listdatabasedictionarytextasset
how to split TextAsset into a Dictionary?
I have a text database of English words and I want to load it into a dictionary, as I will be searching for words and I heard they are optimal for such a job. anyways, I know how to load textAssets to string arrays and Lists but I have no idea how to deal with the text.text.Split("\n"[0]).ToDictionary<> method can someone help
void Start () {
words = (text.text.Split("\n"[0])).ToList<string>();
display.text = words[line];
}
Comment