On 2/21/07, Mongi <[EMAIL PROTECTED]> wrote:

> Brett thanks again for ur reply.  The statements in file1 look as follows:
>
> var1=value1; var2=value2;
> .........
> varn=valuen; etc...
> ..........
>
> where var1,2,... are declared variables names and value1,2,... are
> derived numbers from another program (which is Not a C-pgm this why i
> cannot use the external statements to get them...) Sometime during the
> solution, file1 contains less or more statements like that (ie,
> changing).

What language is the other program written in? There are ways to
interface languages like Perl and Python with C... either by creating
C functions that are callable from Perl or Python, or vice versa --
embedding a Perl or Python interpreter inside a C program and passing
data back and forth that way.

A simpler option, of course, is to either have the other program write
data to a file or print data to stdout that can be read from the C
program via a pipe or a similar inter-process communication method.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to