Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dealing with Ini Files

 
Randy Trover
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic