Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dealing with Ini Files  RSS feed

 
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
Boost this thread!