Parse a Comma Delimited File using JAVA
<p>I want to read this file:-</p>

<pre><code>http://www.somehost.com/products-services/, A0,D1,L0,T0
http://www.somehost.com/news/releases, A1,D0,L1,T0
http://investor.somehost.com, A0, D1, L0, T0
</code></pre>

<p>I have a list of urls and I want to compare those url's with the url's that are there in this file. And Suppose the url that I wanted to compare starts with the url that is there in these file.. Then it will move forward in that url line and it will check for A and D. If A is 0 then we will not crawl that url and vice versa and If A is 1 then we will move forward and see  whether L is 0 or 1 means if L is 1 then we will extract link only and vice versa and same with T is 0 or 1, we will extract text only if T is 0.</p>

<p>Any suggestion how can I do this.. ??</p>
