Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!caip!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!ihlpa!reb2 From: reb2@ihlpa.UUCP (Brown) Newsgroups: net.micro.pc,net.lang.c Subject: Arrays as files Message-ID: <1718@ihlpa.UUCP> Date: Fri, 22-Aug-86 13:06:13 EDT Article-I.D.: ihlpa.1718 Posted: Fri Aug 22 13:06:13 1986 Date-Received: Sat, 23-Aug-86 10:19:45 EDT Distribution: net Organization: AT&T Bell Laboratories Lines: 16 Xref: mnetor net.micro.pc:6252 net.lang.c:5722 *** 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