title: Win Batch reading file - does not save input to other file
body: <p>I want to read a .csv line by line, remove spaces, than echo the lines to another .csv as a &quot;filtered&quot; output. First my input:</p>
  <pre><code>test 
   test
      t e st  .
  th isssss    a te st
  </code></pre>
  <p>Now my parsing script (updated):</p>
  <pre><code>@echo off
  SETLOCAL EnableDelayedExpansion
  cls
  
  
  del K:\Users\Ultron\test\test2.csv
  echo CSRV&gt;&gt;K:\Users\Ultron\test\test2.csv
  
  
  for /F &quot;tokens=*&quot; %%A in (K:\Users\Ultron\test\test.csv) do (
  set &quot;line=%%A&quot; 
  echo %line%
  echo %line% &gt;&gt;K:\Users\Ultron\test\test2.csv
  )
  
  
  notepad K:\Users\Ultron\test\test2.csv
  </code></pre>
  <p>Now notepad opens and reveals the hopefully expected result:</p>
  <pre><code>CSRV
  ECHO Turned Off (OFF).
  ECHO ist ausgeschaltet (OFF).
  ECHO ist ausgeschaltet (OFF).
  ECHO ist ausgeschaltet (OFF).
  </code></pre>
  <p>If I turn on echo I can see, that the lines are properly read, however it does not print them to the file. If the echo is on, the file contains the same information, only that it says, &quot;ECHO is turned on (ON).&quot;</p>
  <p>It does not save the actual variable.</p>