Fork me on GitHub

.ini file reading/writing

Test for reading/writing .ini files using native Harbour functions.

Source:

Screenshot:


                    Harbour - .ini file parser test
     Call from command-line using a .ini filename as the only parameter

     Using default parseini.ini file

Content of parseini.ini

Section [MAIN]
Procedure = Demo ini file
Name = parseini.ini

Section [Files]
Path = /home/pub
Long = A Data Spreading On various lines here.

Section [Printers]
LPT1 = \\SERVER\myprinter

Adding section 'Added', with key NEW := new
Writing output to parseini_out.ini
File written

Press any key to continue...

How to build/run:

To learn how to build/run this example, see this page.