title: read a file line by line and save it in variable batch file
body: <p>I have the following .txt file:</p>
  
  <pre><code>Marco
  Paolo
  Antonio
  </code></pre>
  
  <p>I want to read it line-by-line, and for each line I want to assign a .txt line value to a variable. Supposing my variable is <code>name</code>, the flow is:</p>
  
  <ul>
  <li>Read first line from file</li>
  <li>Assign <code>name</code> = "Marco"</li>
  <li>Do some tasks with <code>name</code>, let sat <code>set first= %name%</code> </li>
  <li>Read second line from file</li>
  <li>Assign <code>name</code> = "Paolo"
  How do I do it?</li>
  </ul>