how to read data from CFG file for iphone
<p>I want to read data from a CFG (configuration file). How do I read it? Is it the same as XML?</p>

<p>lets say i have this text messge in <strong>text.cfg</strong></p>

<pre><code>Restaurant,tab0.png,tab0/index1.html
Shop,tab1.png,tab1/index1.html
Office,tab2.png,tab2/index1.html
Apartment,tab3.png,tab3/index1.html
</code></pre>

<p>now i want to parse them and create 4 dynamic button each have their own Png and open html file on click .</p>

<p>so whats the best way to parse them( xml or something else) ??as i want this to be generic and i have to update this data as well</p>
