Read from a file search for a word and copy the entire line to another file : <p>I have a file 1.txt
with lines of words</p>

<ol>
<li>A cat went bankrupt</li>
<li>List item</li>
<li>Something is there</li>
</ol>

<p>I search for a word List and copy the entire line to new file
2.txt
List item.</p>

<p>How do i do that?
thank you.</p>
