home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!caen!batcomputer!cornell!uw-beaver!news.u.washington.edu!nntp.uoregon.edu!eric_gorr@coglab_psych.uoregon.edu
- From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
- Subject: Help a beginner programmer
- Message-ID: <1992Jul23.210503.13778@nntp.uoregon.edu>
- Sender: news@nntp.uoregon.edu
- Organization: University of Oregon Network Services
- Distribution: usa
- Date: Thu, 23 Jul 92 21:05:03 GMT
- Lines: 32
-
- 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.
-
- So, for example:
-
- FILE #1:
- aaaaaaaa
- $$INSERT my_file
- bbbbbbbb
-
- my_file:
- cccccccc
-
- FILE #2:
- aaaaaaaa
- cccccccc
- bbbbbbbb
-
- Any help would be appreciated....
-
- thanx..
-
-