I have a file named config.properties in Eclipse with the following content:
PATH_TO_A_FILE=a.txt PATH_TO_B_FILE=b.txt PATH_TO_C_FILE=c.txt In my code, I need to use these properties like this:
conf.put("PATH_TO_B_FILE", properties.getProperty("PATH_TO_B_FILE")); which files A.txt and B.txt are in the same path of the config.properties in the workspace folder
What I should do read those paths from my config.properties file?
Also: should I add a path before b.txt? Should I write it as /home/user/workspace/b.txt or .home.user.Dersktop.b.txt?
.home.user.Dersktopis not valid path, because, it's (maybe) internal path-resolver of Eclipse which is not appliable for Java