Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
    Bookmark Topic Watch Topic
  • New Topic

When and How to use .properties file in JAVA program  RSS feed

 
Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all ,

can anyone of you give me the link which gives more information about when & how to create .properties file and use in java programs

I searched ..i got this "http://www.java-tips.org/java-se-tips/java.util/how-to-read-and-write-a-properties-file.html"

But am not getting full information about .properties file ...if anyone knows please help me.
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Report post to moderator
What information are you not getting?

A properties file contains a list of keys and values. You can load it with a Properties object and an InputStream and save it with a Properties object and an OutputStream. There is not anything more to it.

An advanced question this is not.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.

Thanks.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!