Java Properties Class: getProperty() question
Posted on 2003-11-03
Im using Properties class to read my configuration.ini file which contains variables for my program.
And one of the variables is for a directory path:
directory = C:\some\directory
now the problem is: if i use getProperty
String path = prop.getProperty("directory");
it stripped the "\" off !!
I supposed i could add another \ in the configuration.ini. But is there any other way to do it better? Because someone might go to configuration.ini file and change the directory manually without knowing another "\" required to make it work.
And im really sorry bout the small point, im running out of points here :(