title: Extract string from position X to position Y from TXT files
body: <p>Select "Show pictures" to display embedded pictures. Show pictures</p>
  
  <p>I have many txt files and I need to extract data from them for inserting in an SQL DB</p>
  
  <p>the files are something like bellow:</p>
  
  <p>"DESCRIPTION USER TIME       FIELD"</p>
  
  <p>"-------------       ------   ----------  -----------"</p>
  
  <p>"XXXX                 YY01 12:01:01 SAMPLE"</p>
  
  <p>It's like some sort of columns, and the rule is only the position and length of each column, determined by those lines (-----) beneath each column header description</p>
  
  <p>I need to extract string from position X to Y from each line and maybe write that in another file or somewhere( this is not difficult)</p>
  
  <p>I need a code that will parse each line from that txt and return string from position x to position Y for every line in txt</p>
  
  <p>How can I do that in vbscript or C++/#...or powershell maybe, in the end I will do some exe or batch that will extract this automatically</p>
  
  <p>Any help would be appreciated as I'm not very familiar with coding</p>