Copy the file a block (512 bytes) at a time.
Check: 	that the program has two arguments
      		  or print "Program need two arguments"
    		that the first name file is readable
      		  or print "Cannot open file .... for reading"
   		 that the second file is writable
     		   or print "Cannot open file .... for writing"
 
(unit8:fileI/O:cp)
last -n
prints out the last n lines, where n is any integer. Your program should make the best use of available storage. Input of text should be read in from a file specified from the command also. Your program should allow input in any order ie -n before or after filename.
(Example only - not marked by ceilidh)
(Example only - cannot be marked by ceilidh)