home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12948 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.3 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. 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
  3. From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
  4. Subject: Help a beginner programmer
  5. Message-ID: <1992Jul23.210503.13778@nntp.uoregon.edu>
  6. Sender: news@nntp.uoregon.edu
  7. Organization: University of Oregon Network Services
  8. Distribution: usa
  9. Date: Thu, 23 Jul 92 21:05:03 GMT
  10. Lines: 32
  11.  
  12. I've been trying to figure this out, but my understanding of the toolbox
  13. routines isn't that good yet.
  14.  
  15. What I am looking for is a procedure that will accept two files names of
  16. files that are text only.
  17.  
  18. What the procedure needs to do is read FILE #1 and when it hits a line that
  19. only contains $$INSERT <path:file name> (or something of that nature) will
  20. then open <path:file name> and will replace $$INSERT <path:file name> with
  21. the lines of text in <path:file name>.  <path:file name> only contains
  22. text.  The result of these operation will be saved in FILE #2.  It should
  23. be able to handle multiple $$INSERT occurances in FILE #1.
  24.  
  25. So, for example:  
  26.  
  27. FILE #1:
  28. aaaaaaaa
  29. $$INSERT my_file
  30. bbbbbbbb
  31.  
  32. my_file:
  33. cccccccc
  34.  
  35. FILE #2:
  36. aaaaaaaa
  37. cccccccc
  38. bbbbbbbb
  39.  
  40. Any help would be appreciated....
  41.  
  42. thanx..
  43.  
  44.