Hi,
    Why don't you have an easy to decipher .rc file, say 1 line per
parameter, and fscanf() them as if you are reading from the keybd. I do
agree that string processing can be slightly tedious with C.. but in this
case there are not many reasons which i can think off.     You can think of
interfaces with Perl , as a second option.

A good place to throw this Q would be
[EMAIL PROTECTED]

BTW, are you from the same Dartmouth which spung up Kemeny and Kurtz
(BASIC ) way nback in 1964?

Are you thinking of changing the source-code during runtime ? what would you
need identifiers for ?

Pls write back, if necessary personally, in details .
Regards
Shourya

----- Original Message -----
From: Karthik Vishwanath <[EMAIL PROTECTED]>
To: linuxgcc <[EMAIL PROTECTED]>
Sent: Friday, May 05, 2000 7:05 AM
Subject: Text parser


> Hi,
>
> I wanted to have my program accept parameters from a text file instead of
> recompling the code everytime I want to change a few dynamic parameters.
> The program is written in C, and text handling in C is quite a tedious
> process (or am I mistaken?). The question is I will have identifiers and
> numbers in my .rc file, which I want parsed and understood. The question
> is can I find some other tool to do this and integrate it with C?
>
> Excuse me if I am on the wrong list with this one.
>
> Thanks,
> -Karthik.
>
>

Reply via email to