It's pretty self-explanatory, what I'm trying to do here. When I do something like this:
set n=0
:choose
set /a n+=1
choice /c yn
if errorlevel 2 ( echo NO! >>log.txt
) else echo YES! >>log.txt
if %n% lss 10 goto choose
The loop executes produces a new line for each time the command is executed (10 times=10 lines) I want it to write all 10 outputs to one line in the log.