<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 04 Jul 2008 17:24:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Richard Heyes' Blog: Reading a specific line in a file]]></title>
      <guid>http://www.phpdeveloper.org/news/9925</guid>
      <link>http://www.phpdeveloper.org/news/9925</link>
      <description><![CDATA[<p>
<i>Richard Heyes</i> has <a href="http://www.phpguru.org/article.php/266">thrown together</a> some code for a simple thing that he's seen developers request over and over again - moving to/reading from a specific line in a file.
</p>
<blockquote>
After reading something on the php-general list I decided that a) I'm bored, and b) I'll write something which handles it. So <a href="http://www.phpguru.org/downloads/LineReader/">here</a> it is.
</blockquote>
<p>
His code is simple - looping through the lines of the file until it locates your desired target (with some error checking along the way). Plus, if it's already fetched, it keeps it in a cached array for future retrieval.
</p>]]></description>
      <pubDate>Mon, 07 Apr 2008 12:56:08 -0500</pubDate>
    </item>
  </channel>
</rss>
