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]
enemy1=5
enemy2=10
enemy3=15

[level 2]
etc…

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.