Text file is messed up, while storing output of a action script

(imported topic written by Techadmin)

unique values of names of regapps

This one fetches output in the following manner.

TVWizard.xbap
TabTip.exe
TvWizard2ft.exe
WINWORD.EXE
WINZIP32.EXE
WinRAR.exe
communicator.exe

But when i write a action script and try to store it in a text file, It gets messed up.

delete "d:\xyz.txt"
createfile until microsd
{unique values of names of regapps}
microsd
move __createfile "d:\xyz.txt"

I’m getting it in the below format.

AcroRd32.exeBESClient.exeBESConsole.exeDVDMaker.exeEXCEL.EXEInetMgr.exeJournal.exeMSACCESS.EXE

how to fix this out? because i have to compare two text files with installed applications of two different computers.

(imported comment written by Techadmin)

can someone help me on this?

(imported comment written by Tim.Rice)

How about something like …

{concatenation “%0D%0A” of (unique values of ((names of regapps)))}

(imported comment written by Techadmin)

Nice one Tim, thanks for the help!

(imported comment written by jgstew)

The issue is the difference between how the debugger will present the data vs how the data will actually be rendered when dumped directly into a file. Tim’s solution is essentially recreating the output the way the debugger presents it.

The reason for this is that you may have wanted to put semicolons/tabs/commas in between each string instead of newlines. The debugger shows you the output in a legible way by default when it can, but when using it, that does not happens so you can choose how you want the output to look.

This is definitely not intuitive since you don’t expect there to be a difference between the debugger and actual use.