aspose file tools*
The moose likes Beginning Java and the fly likes creating ini files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "creating ini files" Watch "creating ini files" New topic
Author

creating ini files

catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78
Hi all,

Can anyone tell me how to create an initialization file for java. when i googled the thing i saw API to do it. [ini4j]
Can anyone tell me what are the essential things i need to know to create .ini file? I am using netbeans IDE. Is there any functions in Netbeans that helps us to create ini file?

Thanks.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1666
    
    7

Depending on what you need the initialization mechanism to do you could use the Properties API, the Preferences API, the third party library you suggested or some sort of custom implementation. Could you provide us with more details / requirements?


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
catherine matthews
Ranch Hand

Joined: Jan 22, 2006
Posts: 78
Hi,

The ini file will set preference to do some calculation.
It will set the unit conversion to values
It should be able to change location of a mdb file i am creating in the program.

In short, it should be able to set some global variables i have defined.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1666
    
    7

Well, yes, but are these initialization settings supposed to be application global or user specific, does simple key/value pair storage match the expected complexity of the settings you wish to store? Those kinds of details can determine the suitablility of one approach over the other.
[ May 08, 2008: Message edited by: Jelle Klap ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating ini files
 
Similar Threads
including ini file in project
Listing directory contents as per filter
how to create file in jsp?
Regarding .ini files in JSP
JVM crashed