how to get values from a text file and put in an array
<p>I have a text file containing:</p>

<pre><code>activity = a
duration = 2
predecessor = none

activity = b
duration = 6
predecessor = a
</code></pre>

<p>How can I get the values of activity, duration and predecessor, and put into activity[], druartion[] and predecessor[] respectively?</p>
