title: How to get a line in a Text file using cakephp
body: <p>So I know how to open a file in php is done using</p>
  
  <pre><code>fopen("file.txt", 'r') ;
  </code></pre>
  
  <p>but i want to get one line in the file and so some string manipulation on it.</p>
  
  <p>such as " Serving this  with &lt;0101010> " </p>
  
  <p>I want to find the line that starts with "Serving this" and take the whole line add it to $line </p>
  
  <p>Then i will get  remove the &lt;> and add it to $number , and same for &lt;0101010> </p>
  
  <p>names of methods that can be used would be just perfect</p>