Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

propertiesfile

 
Kenneth Van Gysegem
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I just started with a JDBC course,
I wrote the following programme:



now my course states that in this example the driverinfo, url, username and password are hardcoded in the programme.
It says that this is not a good idea, and that I should work with a propertiesfile.

Then it states that in the root of my project I can make an extra folder, name it "config", within that folder I should make a file named "jdbc.properties"
and insert key-value pairs.
Ok, my question is how do I make the extra folder?

I am aware that this might a bit a stupid question, but i can't find the solution to it.
Thanks in advance
Kenneth
 
Wei Dai
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>Then it states that in the root of my project I can make an extra folder,
I guess that your teacher wish you to create a directory manually. Of couse you can use java.io.File.mkdir method also.
 
Kenneth Van Gysegem
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
I'll look into the java.io.File.mkdir method.

Kenneth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic