Help in passing array of inputs to C program using script?

Hi,

I have a file input which has 1000 data inputs of array elements.

I would like to pass this to a C program one line at a time as input automatically. Anyone know how I could use "sed" to perform this?

Appreciate alot. Thanks.

What is the reason to use sed? In C you can use fpopen() and fgets() to read the file.

Regards