S
stephanj
Hi all,
I am using Netbeans V5.0 and using a properties file for an application.
How can I specify where the file is stored WITHOUT using the full path of
the properties
file.
For example, below is a snippet of my code
Properties props = null;
try {
// create a Properties object called "props"
props = new Properties();
File file = new File("C:\\###-01-Semester-1-####\\" +
\\Topic5Database\\src\\config\\database.properties");
FileInputStream in = new FileInputStream(file);
// load the file into the Properties object
props.load(in);
I am using Netbeans V5.0 and using a properties file for an application.
How can I specify where the file is stored WITHOUT using the full path of
the properties
file.
For example, below is a snippet of my code
Properties props = null;
try {
// create a Properties object called "props"
props = new Properties();
File file = new File("C:\\###-01-Semester-1-####\\" +
\\Topic5Database\\src\\config\\database.properties");
FileInputStream in = new FileInputStream(file);
// load the file into the Properties object
props.load(in);