Good morning, i'm making a program for backup. In the config file i need specify N source directories and theyr destination directories, like this:
source="source dir", "destination drive1", "destination drive2"
source="source dir2", "destination drive", "destination drive2"
but in properties i can have only one value for a key, so i use different keys for source1, source2 etc.
there is a workaround for this?
ps what is the correct way to split the above string "source dir", "destination drive1", "destination drive2" if i split with " it's easy, but if i have something like
"i feel ""good"" because i'm a java programmer", "i feel "very bad" because i'm a java programmer"
i can't use string.split("""") because the " in "good" will split the string.
thank you very much