- Home /
Reading Data from textfile
Im having problems with figuring out how to do data reading from a .txt file. Im trying to make the .txt file placable in the inpector, by using a TextAsset. But i dont know how to read from the text asset. what im after is getting all the lines in the file as an array of strings, where each line would be its own element in the array.
Any help would be appreciated!
Cheers! //Gaffa
Comment
Answer by ZnCroXD · Feb 12, 2017 at 12:26 PM
This tutorial is to Localization Data, but is pretty much the Same that u want to do, only that is not ".txt" is ".json" but can by read and edit by a text reader (note block). Localization Tools Tutorial