Sending variables from a txt file

can i send some variables that are within a text file into the actionscript; i mean, in 1.txt there will be a[1]=30; can i use a function to read this variable and then use it in the actionscript like x=a[1]+2 and x would be 32? please help… it is very urgent and i can’t find a way to deal with this… an example would really help… thank you!!