jedistar
asked on
config file
Hi,
I'm using Netbeans and everytime i build/clean, it wipes out my myprogram\/dist directory.
Wheres a good place to store my config.txt so that my properties can read it.
I put it in myprogram\conf
i,e ..\\conf\\config.txt
says file not found.
I'm using Netbeans and everytime i build/clean, it wipes out my myprogram\/dist directory.
Wheres a good place to store my config.txt so that my properties can read it.
I put it in myprogram\conf
i,e ..\\conf\\config.txt
says file not found.
post the code where you store and where you read that file;
ASKER
Properties props = new Properties();
FileInputStream in = new FileInputStream("config.tx t");
props.load(in);
..
the file is stored in my application\dist folder.
FileInputStream in = new FileInputStream("config.tx
props.load(in);
..
the file is stored in my application\dist folder.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks.
:)