dcsimg
How can I write and read INI files with SECTIONS in Java?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tomas_Zajic
Posted On:   Wednesday, May 30, 2001 03:22 AM

Hi, I would like to use ini file in JAVA, which contains some sections. When I used the properties class, these sections were deleted (after calling method "store(...)" of the properties class).

Re: How can I write and read INI files with SECTIONS in Java?

Posted By:   Ivo_Limmen  
Posted On:   Wednesday, May 30, 2001 04:02 AM

The INI file format is different than from the property file from Java. A property file in Java is a simple hashtable with key/value pairs whereas the INI file has key/value pairs grouped by category.
You would have to write your own class to intrepret the INI file for reading and writing.
About | Sitemap | Contact