I created a configuration file that has the following format
variableName = value variableName = value variableName = value
I know that I can read the files that they share by storing them in a variable. But I am looking for an easy way. For example, I want to save the names of variables and their value in a file, and I want, when I read the file, it will automatically restore the variables and their values. (I know how to do this in php, and it is very easy, but I am not a java expert :()
My second question concerns the next reading of the file. I have a file that has rows and columns it could be a CSV, for example
one,two,three four,five,six seven,eight,nine
I want to read it so that it returns a whole column, for example (one four seven), for others. I do not want to use OpenCSV as a non-csv-oriented application for only one function.
Edition:
Is it possible to write the whole name of a variable and its value, and when I read the file, it will automatically declare this variable and assign values?
java
user238384
source share