home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / elan1v5 / files / copy.e next >
Encoding:
Text File  |  1989-03-10  |  421 b   |  27 lines

  1.  
  2. copy:
  3.   ask name of old file;
  4.   ask name of new file;
  5.   copy from old to new.
  6.  
  7.   ask name of old file:
  8.     TEXT VAR x;
  9.     put ("Old file :");
  10.     get (x);
  11.     old file (x).
  12.   
  13.   ask name of new file:
  14.     put ("New file :");
  15.     get (x);
  16.     new file (x).
  17.   
  18.   copy from old to new:
  19.     REP
  20.       read (x);
  21.       write (x);
  22.       write line
  23.     UNTIL file ended
  24.     ENDREP;
  25.     close file.
  26.