This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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:
subject: Dealing with Ini Files
Similar Threads
Serialisation to textbased formats
Change Windows Registry
JVM crashed
How to access 2 different weblogic applications running on different ports thru IIS.
read from ini file