🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.pc
Article #7561

Arrays as files

#7561
From: Brown
Date: Fri, 22 Aug 1986 17:06
16 lines
1027 bytes
*** 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
Technical Details
Message-ID: <1718@ihlpa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!columbia!caip!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!ihlpa!reb2

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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