wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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