Code: Select all
Write into Text File $TARGETDIR$\\Settings.dat from Value $ODBCLOC$ (at start of file)
Write into Text File $TARGETDIR$\\Settings.dat from Value 1.2.3.4 (at end of file)
Write into Text File $TARGETDIR$\\Settings.dat from Value username (at end of file)
Write into Text File $TARGETDIR$\\Settings.dat from Value password (at end of file)
expecting Settings.dat to be:
Code: Select all
C:\\Database
1.2.3.4
username
password
but I'm getting:
Code: Select all
C:\\Database
C:\\Database
1.2.3.4
username
password
1.2.3.4
username
password
(there 4 blank lines between the first 2 copies of $ODBCLOC$ and the 1.2.3.4 address)...
Any ideas on what's going wrong or how to achieve a text file with those 4 lines in it?
Thanks

/edit - setting them to all Start of file gives:
Code: Select all
password
username
1.2.3.4
C:\\Database
C:\\Database
C:\\Database
1.2.3.4
username
password
1.2.3.4
username
password