How to read key=value file and how to split a comma-separated String?
<p>I made a config file it has some following format</p>

<pre><code>variableName = value
variableName = value
variableName = value
</code></pre>

<p>I know I can read file split them store them in variable. But I am looking for an easy way. For example I want to store variable names and its value in a file and I want when I read file it automatically restore variables and its values. ( I know how to do it in php and it is very easy but I am not java expert :( )</p>

<p>My second question is about following file read. I have a file that has rows and colums
it can be CSV, for example</p>

<pre><code>one,two,three
four,five,six
seven,eight,nine
</code></pre>

<p>I want to read it that it return whole column for example ( one four seven ) same for others. I don't want to use OpenCSV as its not csv oriented application just for one function.</p>

<p>EDITED:</p>

<hr>

<p>Is it possible to write all variable name and its value and when I read file it automatically declare those variable and assign values?</p>
