config file

Posted on 2006-05-19
Last Modified: 2010-03-31

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.
Question by:jedistar
    LVL 14

    Expert Comment

    post the code where you store and where you read that file;

    Author Comment

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

    the file is stored in my application\dist folder.
    LVL 14

    Accepted Solution

    so as you said that config.txt is in conf
    FileInputStream in = new FileInputStream("conf/config.txt");

    also do the same for writting

    Author Comment

    LVL 14

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now