Loading External .txt File

I have seen a tutorial on this, but it was very un-thorough and it didn’t have it the way I was looking at. Is there any way to load individual variables from a .txt file, like so:

[level 1]

[level 2]

It’s done in some other Flash games and in Soldat, and it would make scripting ALOT easier as I can change all of the variables without loading Flash. Thanks very much for your time and any help given. Wsp.