home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!bluemoon!zaphod
- From: zaphod@bluemoon.rn.com (Peter Bierman)
- Subject: Re: Help a beginner programmer
- Message-ID: <JD3HoB8w165w@bluemoon.rn.com>
- Sender: bbs@bluemoon.rn.com (BBS Login)
- Organization: Blue Moon BBS ((614) 868-998[024])
- References: <1992Jul23.210503.13778@nntp.uoregon.edu>
- Date: Sat, 25 Jul 92 23:32:54 EDT
- Lines: 30
-
- eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:
-
- > I've been trying to figure this out, but my understanding of the toolbox
- > routines isn't that good yet.
- >
- > What I am looking for is a procedure that will accept two files names of
- > files that are text only.
- >
- > What the procedure needs to do is read FILE #1 and when it hits a line that
- > only contains $$INSERT <path:file name> (or something of that nature) will
- > then open <path:file name> and will replace $$INSERT <path:file name> with
- > the lines of text in <path:file name>. <path:file name> only contains
- > text. The result of these operation will be saved in FILE #2. It should
- > be able to handle multiple $$INSERT occurances in FILE #1.
- >
- >
-
- This is the kind of specialized thing that you would have to write
- yourself. What you need to do is write a program that loops through
- reading in lines of file 1 and writing them to "myfile", and calling
- another loop when it reads in a certain line "insert" from file 1.
-
-
- ---
- The opinions I express are rarely my own, becuase my own are far too
- outragous to post here.
-
- IntNet:zaphod@bluemoon.rn.com FutureNet: #33@#10
- The Metropolis (614)-846-1911
- ---
-