Well, you can't run code from a text file, because DBPro exports machine code, and the exe's can't actually read the language and do stuff. I know that sounds bad, but DBPro would be slower if it ran it's source from a file and then had the exe interpret it. I guess you could just do something like this.
open to read 1,"Stuff.txt"
read string 1,string$
if string$="end" then end
If you did it right, then it would work fine. You could have commands wth parameters and have the program run them like normally, with the values from the text file. I think there is also an LUA plugin that lets you have seperate source files that get read in program, and includes most of the DBPro commands, but I've never tried it.
Hope that helped.
Codesurge is so awesome, thanks Hyrichter.