title: Read a file line by line,and get the line that starts with some word?
body: <p>I am using python and trying to read a file line by line and adding those lines in JSON, but i need to check if the line starts with some word and after that word put the text in json until it finds that the line starts with the specific word again, </p>
  
  <p>I have an array of these specific names:</p>
  
  <pre><code>names_array= ['Filan Fisteku','Fisteku Filan']
  </code></pre>
  
  <p>so for example the txt file is like:</p>
  
  <ol>
  <li>Filan Fisteku: Said something about this , blla blla blla then </li>
  <li>the Filan Fisteku speech goes on on the next line,  plus some other text.</li>
  <li>Fisteku Filan: This is another text from another guy which i am trying to put in a json.</li>
  </ol>
  
  <p>so the json i want to make out of this txt is :</p>
  
  <pre><code>{
  "Filan Fisteku":["Said something about this , blla blla blla",
                    "then the Filan Fisteku speech goes on on the next line,",
                    "plus some other text."],
  "Fisteku Filan":["This is another text from another guy which",
                   "i am trying to put in a json"]
  }
  </code></pre>
  
  <p>I need to know if I can do this with recursion or how can i do that?</p>