Arrays as files

Brown reb2 at ihlpa.UUCP
Sat Aug 23 03:06:13 AEST 1986


*** REPLACE THIS LINE WITH YOUR MESSAGE ***

I would like to do the following:  1) Read an input file line
by line and save each line in an array (using an AWK-like
interface)  2) Then, within the same program, cause STDIN
to point to the array so that the program can read from STDIN
and get each of the saved input lines.

I can do #1, but I can't think of any way to do #2.  By the
way, this is all being done on a PC using Microsoft C.

I would greatly appreciate any help.  Thanks.

Rick Brown
 AT&T Bell Labs
 ihlpa!reb2



More information about the Comp.lang.c mailing list