I made a config file it has some following format
variableName = value
variableName = value
variableName = value
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 :( )
My second question is about following file read. I have a file that has rows and colums it can be CSV, for example
one,two,three
four,five,six
seven,eight,nine
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.
EDITED:
Is it possible to write all variable name and its value and when I read file it automatically declare those variable and assign values?