title: How can I include the results of reading parts of a txt into a dataframe in python?
body: <p>I am working with a long txt file, of which I have the structure, and need the positions on the code below (form every line) in a list, so I can put them into a data frame and work with them:</p>
  <pre><code>with open('File.txt','r') as file:
  lines = file.readlines()
  for line in lines:
      a,b = 0,2
      c,d= 2,19
      e,f= 44,52
      g,h= 52,64
   print(line[a:b],line[c:d],line[e:f],line[g:h])
  </code></pre>
  <p>The results come out right in the print() above, but I cannot seem to put it into a list with the following code:</p>
  <pre><code>list([line[a:b],line[c:d],line[e:f],line[g:h]])
  </code></pre>
  <p>The result of the prior code is just a list with all the correct positions but only of the very last line on my data</p>