File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: Dealing with Ini Files
It's not a secret anymore!