Re: reading .ini values in 4GL
Posted in 1999
One way to do this is to preprocess the file with sed to add at the end of each string a "|" character, then you just have to load the file into a temporary table and process the data from this temporaru table. Of course you can write a C function to read files and integrate into your runner (I assume you have RDS). As I remember it could be such a function in the IIUG archive. Please, check the 4GL manuals for C integration into 4GL. They have there a good description of this process. Please, post to newsgroup. You could get more answers and more ideas on how to do things like this. Best Regards, Octav On Fri, Aug 13, 1999 at 11:40:31AM -0700, Krishnakumar Nandagopal wrote: > > Hi, > > I want to have a set of parameters/values in a .ini file and read those > values at the beginning of the appication in INFORMIX-4gl program. > > Do we have to write a 'C' program for that ?? > If so how ??? > Or is there any other way of doing it ?? > > Thanks in advance .. > > krishnakumar > > === > ****************************************************************** > * Integrity : Doing the right thing, even if no one is watching. * > ****************************************************************** > _________________________________________________________ > Do You Yahoo!? > Bid and sell for free at http://auctions.yahoo.com -- Octav Chiriac Phone: (373) 2 22 99 67 NetInfo S.R.L. Fax: (373) 2 21 36 59 Chisinau (373) 2 22 84 88 Moldova, Republic of mailto:com@netinfo-moldova.com