kix

Hi,

I'm interested to path information from an external executable program (written in C), which does some calculations (that are not convinient to write in kix), to a kix script.

What's the best way to acomplish this?
(I'd like to avoid writing to a temporary file)

Thanks,
V.F.
zz_vf_zzAsked:
Who is Participating?
 
SunBowCommented:
Is this KixTart?

Never mind. As you have phrased this, I think I'd go with a canned script, a boiler-plate, if you will. Read in the static parts in C, and have the C code tuck in the new information, while outputting the combination into a single script file (not temporary, but readable, for troubleshooting, which is why I made prior comment, to benefit debugging efforts).

Answer: Use same C program to output the script itself.
0
 
SunBowCommented:
I prefer temporary file
0
 
SunBowCommented:
Thanx.  I do tend to prefer simplification (KISS) and tracking (log & other 'temp' files) to maintain sense of control. My use of Boilerplate, to be clear, is that all of the 'canned' script, the parts that do not change over time, to have a standard file that is imported by the code. This permits ease of changing minor items, such as changed street address, city,, some data item not essential to programmatic functions.
Thanx, and

Good Fortune
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.