Link to home
Start Free TrialLog in
Avatar of jedistar
jedistarFlag for Singapore

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.
Avatar of hoomanv
hoomanv
Flag of Canada image

post the code where you store and where you read that file;
Avatar of jedistar

ASKER

Properties props = new Properties();
FileInputStream in = new FileInputStream("config.txt");
props.load(in);
..

the file is stored in my application\dist folder.
ASKER CERTIFIED SOLUTION
Avatar of hoomanv
hoomanv
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks.