Using a *.ini parameters file under QNX

Hi, I would like to use a text file like “myprogram.ini” to pass parameters
to my executable. Is it exist a librairie that I can use to manage access
to a text file quickly? My application would be able to run under QNX4 and
Neutrino.

Thanks.

You should use phexlib.
There are set of routines that could help you
But you need Photon tool kit to use them

“Sylvain Guillemette” <sguillemette@akitek.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ: news:95ecbq$grt$1@inn.qnx.com

Hi, I would like to use a text file like “myprogram.ini” to pass
parameters
to my executable. Is it exist a librairie that I can use to manage access
to a text file quickly? My application would be able to run under QNX4
and
Neutrino.

Thanks.

Hi, I would like to use a text file like “myprogram.ini” to pass
parameters
to my executable. Is it exist a librairie that I can use to manage access
to a text file quickly? My application would be able to run under QNX4
and
Neutrino.

I didn’t find one when I needed the same thing so I wrote a set of classes
to
do it for me…:slight_smile: Right now it only reads the ini into a set of linked
section
classes derived from a set of linked key/value classes. It works under QNX4
but I haven’t gotten around to compiling it under RTP…

~ Lee R. Copp
~ Project Engineer (EE/ME)
~ Michigan Scientific Corp.
~ 321 East Huron St.
~ Milford, MI 48381
~ 248-685-3939 x109 (V), 248-684-5406 (Fx)
~ http://www.michiganscientific.com
~ mailto:<Lee.R.Copp@MichiganScientific.com>

Sylvain Guillemette <sguillemette@akitek.com> wrote:

Hi, I would like to use a text file like “myprogram.ini” to pass parameters
to my executable. Is it exist a librairie that I can use to manage access
to a text file quickly? My application would be able to run under QNX4 and
Neutrino.

fopen() to get access to the file
fgets() to read a line from the file
strtok() to tokenize the line

-David

QNX Training Services
dagibbs@qnx.com