File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Reading INI files with java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading INI files with java" Watch "Reading INI files with java" New topic

Reading INI files with java

narayana Ega

Joined: Aug 23, 2012
Posts: 26
when I am Reading and printing INI files with java the out put of the java program is as shown below attached image file.

The out put contains some box symbols.

any body help me to remove the box symbols...


[Download inifiles.bmp] Download

Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 466

Are you using HierarchicalINIConfiguration? Please post your code.

Vinod Tiwari | Twitter | Shikshanirman | Guftgu
narayana Ega

Joined: Aug 23, 2012
Posts: 26
No I am Reading the INI file as .txt file...

DataInputStream br = new DataInputStream(new FileInputStream (inifilepath));
line = br.readLine();
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
Check out the ini4j library.
I agree. Here's the link:
subject: Reading INI files with java
It's not a secret anymore!