This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Dealing with Ini Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dealing with Ini Files" Watch "Dealing with Ini Files" New topic
Author

Dealing with Ini Files

Randy Trover
Ranch Hand

Joined: Feb 26, 2001
Posts: 34
Hello All,
Is there a class in java for reading and writing to windows style Ini files? thanks for any help.
Cheers
Randy
qionghua yang
Ranch Hand

Joined: Oct 31, 2000
Posts: 68
Hi,
Using the following code to create an INI file.
-- create an ini file
DataOutputStream output = new DataOutputStream(new FileOutputStream("C:\\file.ini"));
-- read the ini file
DataInputStream input = new DataInputStream(new FileInputStream ("C:\\file.ini"));
Hope this helpes.
qionghua
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dealing with Ini Files