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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!bluemoon!zaphod
  3. From: zaphod@bluemoon.rn.com (Peter Bierman)
  4. Subject: Re: Help a beginner programmer
  5. Message-ID: <JD3HoB8w165w@bluemoon.rn.com>
  6. Sender: bbs@bluemoon.rn.com (BBS Login)
  7. Organization: Blue Moon BBS ((614) 868-998[024])
  8. References: <1992Jul23.210503.13778@nntp.uoregon.edu>
  9. Date: Sat, 25 Jul 92 23:32:54 EDT
  10. Lines: 30
  11.  
  12. eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:
  13.  
  14. > I've been trying to figure this out, but my understanding of the toolbox
  15. > routines isn't that good yet.
  16. > What I am looking for is a procedure that will accept two files names of
  17. > files that are text only.
  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. This is the kind of specialized thing that you would have to write 
  26. yourself. What you need to do is write a program that loops through 
  27. reading in lines of file 1 and writing them to "myfile", and calling 
  28. another loop when it reads in a certain line "insert" from file 1.
  29.  
  30.  
  31. ---
  32. The opinions I express are rarely my own, becuase my own are far too 
  33. outragous to post here.
  34.  
  35. IntNet:zaphod@bluemoon.rn.com    FutureNet: #33@#10
  36. The Metropolis (614)-846-1911
  37. ---
  38.