If you look up:

LoadVars

this is used to import variables from an external source (your txt file)

You may need to consider the XML object if you have a lot of data to load.