title: Open a csv file in DOS
body: <p>Is it possible to open a csv file such as:</p>
  
  <pre><code>a,b,c,d,e,f,g,h
  </code></pre>
  
  <p>And have DOS read it in (in a batch file), check the data and then remove it from the file under a certain condition?</p>
  
  <p>Pseudo code:</p>
  
  <pre><code>open csv file
  for each letter
      if letter is e
          remove e from csv file
  close and save csv file
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>If I change my data source from a csv to this:</p>
  
  <pre><code>a
  b
  c
  d
  e
  f
  g
  h
  </code></pre>
  
  <p>Then I can call this:</p>
  
  <pre><code>rename file.txt file.bak
          for /f %%a in (file.bak) do (
              set hmm=%%a
              if !hmm!==e set hmm=helloworld
              echo !hmm! &gt;&gt; file.txt)
  </code></pre>
  
  <p>Although this will print out the original data after the new changes like so:</p>
  
  <pre><code>a
  b
  c
  d
  helloworld
  f
  g
  h
  a
  b
  c
  d
  e
  f
  g
  h
  </code></pre>