How to read a properties file in Java?

0 votes
44 views
asked Dec 16, 2016 by Hitesh Garg (124 points)  

My application depends on two dates i.e. start and end date and user has to set the dates before running the program. I have decided to keep them in the .properties file in my resource folder of maven architecture.

I am not able to read and get the data from the file. How to do that if the file lies inside src/main/resources/date.properties

Please log in or register to answer this question.

Welcome to Codingeek Q&A, where you can ask questions and receive answers from other members of the community.
...