title: Echo two or more unique Variables to a text file
body: <p>The file looks like this: </p>
  
  <pre><code>@echo off
  
  set /a varOne=1
  set /a varTwo=2
  
  echo %varOne% %varTwo%&gt;&gt;test.txt
  
  start test.txt
  </code></pre>
  
  <p>varOne and varTwo can be any number.</p>
  
  <p>My problem is that it doesn't write "1 2" to the test.txt as I'd expect.
  When I remove varTwo, it looks like this:</p>
  
  <pre><code>@echo off
  
  set /a varOne=1
  
  echo %varOne%&gt;&gt;test.txt
  
  start test.txt
  </code></pre>
  
  <p>This does do as I'd expect. It writes "1" to test.txt</p>
  
  <p>To allow for both numbers to be written to the file I can just remove the space between both variables. But For my situation, I need a space in between the variables.</p>
  
  <p>How do I write 2 variables with a space in between them to a text file?</p>
  
  <p>Thanks.</p>