Reading a text file with delimiters
<p>I have a text file, the contents are</p>

<pre><code>Point1, [5, 6]
Line2, [1, 2, 3], [-5, 55, 33]
Point2, [5, 3, 1]
Line1, [1, 2], [5, 7]
</code></pre>

<p>I will do comparisions, like the first variable (Point1, Line2, Point2, Line1)</p>

<p>If it is point1, it will be stored into point 1 array, and 5 being set as x, and y being set as 6.</p>

<p>How do I set the delimter to commas and also the '[' and ']'. I just need the variable Point1, 5 and 6 to store them accordingly.</p>
