Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1564

Re: Merging three files together?

From Martin Bazley <martin.bazley@blueyonder.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Merging three files together?
Message-ID <d989c47952.martin@blueyonder.co.uk> (permalink)
References <f08f977952.rogerarm@rogerarm.freeuk.com>
Organization virginmedia.com
Date 2012-04-01 21:53 +0100

Show all headers | View raw


The following bytes were arranged on 1 Apr 2012 by Roger Darlington :

> SPOOL "<!Genus_Fam$Dir>.GeneraToFamilyInfo/htm"
> PRINT "<!Genus_Fam$Dir>.Header"
> PRINT "<!Genus_Fam$Dir>.Middle"
> PRINT "<!Genus_Fam$Dir>.Footer"
> *Spool

While it won't solve your fundamental problem of this being a filthy
bodge which really should have a better solution, this will at least be
slightly quicker:

(Note: The following should be three single lines!)

*Copy <!Genus_Fam$Dir>.Header <!Genus_Fam$Dir>.GeneraToFamilyInfo/htm ~C~VF
*Print <!Genus_Fam$Dir>.Middle { >> <!Genus_Fam$Dir>.GeneraToFamilyInfo/htm }
*Print <!Genus_Fam$Dir>.Footer { >> <!Genus_Fam$Dir>.GeneraToFamilyInfo/htm }

> Is there a simpler and quicker way (within BASIC).

What are you on about?  There's no such thing as a SPOOL command in
BASIC, and the PRINT keyword certainly doesn't behave as you imply
above!

-- 
  __<^>__   "Start off every day with a smile and get it over with."
 / _   _ \  - W.C. Fields
( ( |_| ) )
 \_>   <_/  ======================= Martin Bazley ==========================

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Merging three files together? Roger Darlington <rogerarm@freeuk.com> - 2012-04-01 13:42 +0100
  Re: Merging three files together? Steve Drain <steve@kappa.me.uk> - 2012-04-01 17:48 +0100
    Re: Merging three files together? Roger Darlington <rogerarm@freeuk.com> - 2012-04-02 09:33 +0100
      Re: Merging three files together? Steve Drain <steve@kappa.me.uk> - 2012-04-02 11:56 +0100
  Re: Merging three files together? Martin Bazley <martin.bazley@blueyonder.co.uk> - 2012-04-01 21:53 +0100
    Re: Merging three files together? Roger Darlington <rogerarm@freeuk.com> - 2012-04-02 09:28 +0100

csiph-web