Createfile/Appendfile Carriage Return Help

Thank you for the quick reply! A bit messy to do this for a 300 line file with quotes that have to be escaped, but it does appear to be working. My only problem now is that it does not read the parameters like it is supposed to. With the entire contents of the createfile already being wrapped in the relevance curly brackets { }, the parameters aren’t working. It is reading the first " in the parameter name as the end of the string and then expects the ; to follow. I tried placing the parameter within ( ) rather than relevance brackets, but that did not work.

I removed a lot of lines for simplicity sake, but here is what I am doing:

parameter "device1" = "{(concatenation of ((preceding text of first "X" of (node values of child nodes 0 of selects "Info/Subnet" of xml document of file "C:\config\deviceinfo.xml")) ; "150"))}"

createfile until EOF_EOF_EOF
{concatenation "%0a" of ("Device Configuration";"config ip={parameter "device1"}";"config name=%22Device1%22")}EOF_EOF_EOF