I have .txt file containing all the English words separated by line breaks.
I want to turn them to a string so I can easily pick a random one from them.
The way I would do that in normal C# is the File.ReadAllLines(path) function in the System.IO namespace.
But, I don't think that I can use System.IO with Unity so the alternative that I could come up with is the TextAsset class which I can use to reference an imported text asset and get its text property as a string.
But, if I have a giant string how can I simply split it up into individual words and store them as a string?