Skip to content

Instantly share code, notes, and snippets.

@yamanyar
Created April 8, 2016 12:11
Show Gist options
  • Save yamanyar/c8a0d39a634528727f89b90f35bcc2ff to your computer and use it in GitHub Desktop.
Save yamanyar/c8a0d39a634528727f89b90f35bcc2ff to your computer and use it in GitHub Desktop.
_dictionary = new TstDictionary ();
TextAsset text = null;
float t = Time.realtimeSinceStartup;
try {
text = Resources.Load ("z") as TextAsset;
using (var reader = new StringReader (text.text)) {
string key;
while ((key = reader.ReadLine ()) != null) {
key = key.Trim ();
_dictionary.Add (key, null);
}
}
} finally {
if (text != null)
Resources.UnloadAsset (text);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment