aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading INI files with java" Watch "Reading INI files with java" New topic
Author

Reading INI files with java

narayana Ega
Greenhorn

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...


Thanks.........


[Download inifiles.bmp] Download

Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 466
    
    1

Are you using HierarchicalINIConfiguration? Please post your code.


Vinod Tiwari | Twitter | Shikshanirman | Guftgu
narayana Ega
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
Check out the ini4j library.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading INI files with java