OS/2, eCS & ArcaOS - Technical > Programming
human readable config file handling - libs we have
Dave Yeo:
Using libxml for parsing config files seems popular. This search returns a bunch of hits, https://duckduckgo.com/?q=libxml+for+parsing+config+files or can simply search for "parsing config files"
Andreas Schnellbacher:
--- Quote from: Andi B. on February 06, 2021, 06:02:26 pm ---
--- Quote from: Andreas Schnellbacher on February 06, 2021, 03:41:46 pm ---Christian's WPSTK lib contains functions to access text ini files.
--- Code: ---start view wtkref /s "text initialization"
--- End code ---
--- End quote ---
As far as I can see it produces and works with .ini file format. Not what you can read and edit with standard text editors. Have I missed something?
--- End quote ---
It's for text ini files.
David Graser:
Here are some REXX scripts to convert OS/2 INI files to human editable Rexx scripts. The scripts may help you with your idea.
Converts OS/2 INI files to human editable Rexx scripts
https://hobbes.nmsu.edu/download/pub/os2/util/wps/ini2rexx.zip
Pete:
Hi Andi
You may find genini useful see https://hobbes.nmsu.edu/?detail=%2Fpub%2Fos2%2Futil%2Fconvert%2FGenINI_2.0.zip
Regards
Pete
Andi B.:
--- Quote from: Andreas Schnellbacher on February 06, 2021, 08:57:16 pm ---
--- Quote from: Andi B. on February 06, 2021, 06:02:26 pm ---
--- Quote from: Andreas Schnellbacher on February 06, 2021, 03:41:46 pm ---Christian's WPSTK lib contains functions to access text ini files.
--- Code: ---start view wtkref /s "text initialization"
--- End code ---
--- End quote ---
As far as I can see it produces and works with .ini file format. Not what you can read and edit with standard text editors. Have I missed something?
--- End quote ---
It's for text ini files.
--- End quote ---
I searched the documentation a while and tried the _settings sample as I think this is the right sample. Unfortunately what it produces is a .ini file. Some portions are 'human readable' but not a text file. See attached. Had to rename it to .txt as otherwise I can't upload it here.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version