title: Batch File to read 'N' characters from a text file
body: <p>I have searched this across the net and found many codes for retrieving the entire line from a text or replacing the text with another but not for what i was looking for.</p>
  
  <p>Using the For loop with the tokens would return on the set (word) separated with spaces.</p>
  
  <p>I want to pull only a few characters from the line.</p>
  
  <p>Eg: <code>12345qwerty67890</code></p>
  
  <p>If this on in a text file i want to pull only '12345' and assign it to a variable.</p>
  
  <p>Any help is greatly appreciated.</p>