LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2011, 11:06 PM   #1
cshong
LQ Newbie
 
Registered: Nov 2006
Posts: 24

Rep: Reputation: 0
Introduce me c++ / java configuration file libraries please.


I would like a library for either C++ or Java that can store and read configuration files and meet my following requirements:

For C++:
- Cross-platform support (Windows, Linux, MAC OS, etc).
- On Windows, support Microsoft Visual C++ compiler.
- Full unicode support (Can read and write text in configuration file in unicode format)
- Optional and not necessary: Support Xcode on MAC OS.

For Java:
- Cross-platform support (Windows, Linux, MAC OS, etc). I know Java itself support cross-platform, but I just want to mention this.
- Full unicode support (Can read and write text in configuration file in unicode format)

Please do not introduce me the following libraries:
- libconfig (lack of Unicode support)

You no need to introduce me libraries for both language at the same time. If you know libraries for C++, just introduce libraries for C++. If you know libraries for Java, just introduce libraries for Java.

Last edited by cshong; 07-02-2011 at 11:07 PM.
 
Old 07-03-2011, 03:51 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Java:
* Your best bet is to read and write good, old fashioned "property files":

http://www.exampledepot.com/egs/java.util/Props.html


C/C++
* Your best bet is to read/write a simple clear text UTF8 file:
FORMAT:
- name=value
- "#" is comment
- whitespace ignored

For either case, you might also consider an XML file (if, and only if, 2-D name/values isn't sufficient)

http://download.oracle.com/javaee/1....JAXPIntro.html

http://joysofprogramming.com/libxml-tutorial/


'Hope that helps .. PSM
 
Old 07-04-2011, 11:39 AM   #3
gzunk
Member
 
Registered: Sep 2006
Posts: 89

Rep: Reputation: 20
For Java, maybe consider Apache Commons Configuration
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java libraries in Linux Chrax Programming 4 12-05-2005 11:03 PM
Java + OpenGL libraries hylke Programming 10 11-02-2004 09:52 AM
missing java swing libraries? a1ghagh05t Programming 5 01-26-2004 06:04 AM
Program not finding java VM libraries gtanghookup Linux - Software 5 09-04-2003 01:20 AM
Java Libraries not functioning downinthemine Linux - Newbie 1 07-31-2003 09:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration