Msg: 131 *Conference*

06-29-91 12:13:42

From: RICHARD HANSON

To : GREG CHAMBERLIN

Subj: REPLY TO MSG #130 (COPY A FILE)

I understand your request.  You would like a program that would copy a template
file to another file.  Here's an idea off the top of my head that will get you
started.
 
Given an input file named TEMP.DO, we will make a copy called NEW.DO.  Of
course, it would be wise to rename the NEW.DO file to something else, either as
it's made or afterwards, so the NEW.DO file is not always being overwritten.
You can play with that item later.  The following program is just a duplicate
file maker.
 
 10 CLS:PRINT@130,"One moment please..."
 20 MAXFILES=2
 30 OPEN"temp.do"FORINPUTAS1
 40 OPEN"new.do"FOROUTPUTAS2
 50 IFEOF(1)THENCLOSE:MENU
 60 LINEINPUT#1,A$
 70 PRINT#2,A$;
 80 GOTO50
 
Let me know if this actually works... -Rick-