Read Array data (from file) and use it
Posted: Mon May 24, 2010 4:14 pm
Hi,
I'm new here and at first i would like to thank Shvillr for his help during my very first steps.
I want to do a few things and it seems like I need your help.
Right now I managed to load a value from a file into a variable and display this value in different colors depending on the value.
I use the TextFloatRef field in the RenderText item like MyVariable.value and it displays e.g. 65 if an A is in the textfile.
My next step was going to read a value out of a persistent array.
(two dimensions)
But I dont know how to address it. MyArray[1,1] does not work.
Choosing TextArray in the Text item does not show anything.
How to read out this data? Do I have to initialize something first?
My next step will be reading in data into an array from a file.
Two dimensional array (49x49). I have to loop the read in process for each line but where and which item?
And what does the FileNameFloatRef field in the File item does?
Thanks in advance
Raziel
I'm new here and at first i would like to thank Shvillr for his help during my very first steps.
I want to do a few things and it seems like I need your help.
Right now I managed to load a value from a file into a variable and display this value in different colors depending on the value.
I use the TextFloatRef field in the RenderText item like MyVariable.value and it displays e.g. 65 if an A is in the textfile.
My next step was going to read a value out of a persistent array.
(two dimensions)
But I dont know how to address it. MyArray[1,1] does not work.
Choosing TextArray in the Text item does not show anything.
How to read out this data? Do I have to initialize something first?
My next step will be reading in data into an array from a file.
Two dimensional array (49x49). I have to loop the read in process for each line but where and which item?
And what does the FileNameFloatRef field in the File item does?
Thanks in advance
Raziel