How to read a config file

Another newbie question

I would like to have a text config file for my app, with a series of options stored in it. The file will be edited by notepad or another text editor.

How do I open the file and read its contents, preferably like by line?

There are commands for using INI files. lookup getini and putini in the help

1 Like

Many thanks I didn’t think to search for INI.

Edit: I found a useful example at C:\Users\Public\Documents\SoftVelocity\Clarion10\Examples\SRC\SHOWIMG

You can use my class for reading of configuration files.
An incomplete specification is supported but it fully sufficiently for work.

1 Like