Page 1 of 1

WDVariableAppendLineToFile not creating new line

PostPosted: Sat Apr 13, 2019 2:52 am
by olision
Hi,

I'm currently working on a script creating a log file but I can't make WDVariableAppendLineToFile to create a new line in the txt file. I'm using Notepad++ to view the generated .txt file. The command WDVariableAppendTimelogLineToFile does create a new line but I would like not to have the timestamp on that one.

Is there any other way to create a new line in the .txt file?

Thank you!

WD version 6.0.6 running on a Windows 10 machine.

Re: WDVariableAppendLineToFile not creating new line

PostPosted: Tue Apr 23, 2019 11:26 am
by Yvonne Groetzschel
Hello,

There is no command available, but as workaround you can create a line by the following:

var x = "

"

WDVariableAppendLineToFile(x,"C:\Temp\newline.txt")

Cheers,
Yvonne