hello,
i would like throw a list of numbers that i have created in an external txt file into an array that will run in an expression. Does anyone have any idea how to do this? help would be much appreciated.
P
QUOTE(petulia @ 09/28/05, 02:33 PM)
hello,
i would like throw a list of numbers that i have created in an external txt file into an array that will run in an expression. Does anyone have any idea how to do this? help would be much appreciated.
P
[snapback]215903[/snapback]
are you asking how to read in a file with MEL? or how to make an expression read a file??
I know next to nothing about expressions but reading and parsing a text file in MEL is very easy. You need to look at the fopen and fgetline MEL commands. The example script at the end of the fgetline docs shows all you need to know, you'll probably then just have to tokenize each line and use a loop to place the tokenized values into an array (depends how your text file is structured really...)
hope this is some help..
:nathaN
fgetword would be easier.