Results 1 to 3 of 3
  1. #1
    JavaJimme is offline Member
    Join Date
    Nov 2012
    Posts
    30
    Rep Power
    0

    Default config.ini file?

    For my school assignment I have to make an application that connects to my local database (WAMP)
    Now I have 3 classes, one class to connect, one to hold the files of the database and the tester class (which holds the gui) the application works fine. But at the last part of the assignment they say: "Your application gets the database settings from a config.ini file" I have no idea how to do that and I can't find anything about it on google... Any ideas or hints?

    Thanks in advance, Jimme

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: config.ini file?

    Rather than having things like username, password, database location/name, hardcoded in your application, you would instead read them in from a config.ini file.
    Which might look something like:
    username=me
    password=something
    database=blah
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    JavaJimme is offline Member
    Join Date
    Nov 2012
    Posts
    30
    Rep Power
    0

    Default Re: config.ini file?

    Hm ok that was quite easy thank you so much :)

Similar Threads

  1. location of config file
    By shivam0101 in forum New To Java
    Replies: 1
    Last Post: 09-01-2012, 09:02 PM
  2. structs config file
    By gani in forum Struts
    Replies: 2
    Last Post: 07-11-2012, 09:41 AM
  3. loggig - config file
    By jlmp in forum NetBeans
    Replies: 3
    Last Post: 03-29-2011, 10:56 AM
  4. struts-config.xml
    By Heather in forum Web Frameworks
    Replies: 2
    Last Post: 01-17-2008, 11:23 AM
  5. reading values from config file
    By sathish_2111 in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 08-10-2007, 03:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •