Yes,
you can handle an uncompiled *.was file like any other text.
When you find the line of text you wish to insert, you could open the script using
fopen 0 "scriptname.was" readwrite text
Then could you use fgets to find the line above where you want the script appended. Use the fputs command to add the string to the script.
if compile "scriptname.was" ; compiles the .was
chain "scriptname.wax" ; chains the .wax file.
Endif
I found myself saying "could" a lot because whatever dynamic information you are trying to include could probably be handled better through .ini file variables.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.