Please take a look at my original question.
Hi all, I have a file call default.cfg , it is actually a simple text file with the following format:
#define Street=12 street
#define City=San Francisco
and so on and so on.
My question is, how could I create a java program to parse these values such that I could call
) then my result would be "William"?
This one is answered at the link below:
My next question is what if I like to change the value say return setValue("ContactSurname",
"Henry") , this will save the change to the file so that
#define ContactSurname=William changes to #define ContactSurname=Henry
I have tried serveral methods on my own but it seems my program just delete all the text and save as a blank file :(