Variable when calling text file content


I’m down with calling up content from external text files. No problems there. What I’d like to know is this:

If the text file has a number of parts being called up like this:

&text1=this is the first piece of text.&
&text2=this is the second piece of text.&
&text3=this is the third piece of text.&

Can I have a single text box call each of these when necessary? I know different pieces of content can be called from separate text files (like here but I only want to use one text files with all the info.


Can the “text1” part of the following piece of code (which retrieves the appropriate piece of text from the text file) be a variable?

bodytext.htmlText = this.text1;

Any help would be great.