jQuery in Action, 3rd edition
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Dealing with Ini Files" Watch "Dealing with Ini Files" New topic

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.
qionghua yang
Ranch Hand

Joined: Oct 31, 2000
Posts: 68
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Dealing with Ini Files
It's not a secret anymore!