parsing a TextAsset

i have imported a TextAsset (a txt file with semicolon-separated values) into my project. i now wish to parse it line for line and write every different value into a different variable.

How can i do that?

I got it! :O!

var TXT_data : TextAsset;
var TXT_data_array : String;

function Update()
{

TXT_data_array = TXT_data.text;
}

Now i just need some syntax help with `TXT_data_array.Split`....

I want to split at every semicolon. how is it done?

Try using arrays to write it to, so you can easily do it with a for loop. http://www.w3schools.com/jsref/jsref_split.asp http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/thread/64ea2d16-7594-400b-8b25-8b3b9a078eab