Strings in textfiles
Posted: Tue May 05, 2020 12:02 pm
Hello.
Can anyone tell me what i make wrong with this code.
I want to insert an string (a$,b$) in this file.
Code:
a$=files[0]
b$=files[1]
xml$="<dvdauthor>\n<vmgm />\n<titleset>\n<titles>\n<pgc>\n<vob file=\"..a$..\"/>\n<vob file=\"..b$..\"/>\n</pgc>\n</titles>\n</titleset>\n</dvdauthor>"
stringtofile (xml$, "dvd.xml")
Output:
<dvdauthor>
<vmgm />
<titleset>
<titles>
<pgc>
<vob file="a$"/>
<vob file="b$"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
Greetz
Tears
Can anyone tell me what i make wrong with this code.
I want to insert an string (a$,b$) in this file.
Code:
a$=files[0]
b$=files[1]
xml$="<dvdauthor>\n<vmgm />\n<titleset>\n<titles>\n<pgc>\n<vob file=\"..a$..\"/>\n<vob file=\"..b$..\"/>\n</pgc>\n</titles>\n</titleset>\n</dvdauthor>"
stringtofile (xml$, "dvd.xml")
Output:
<dvdauthor>
<vmgm />
<titleset>
<titles>
<pgc>
<vob file="a$"/>
<vob file="b$"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
Greetz
Tears