[aus.mac] Read file 16K limit problem

mari@levels.sait.edu.au (Renato Iannella CC2-4 X3033) (10/07/88)

--

Does anyone have any idea on how to read a text document (that is greater
than 16K in size) into a HyperTalk container ?

The problem is if you execute the following statement...

      read from file FILENAME for NUMCHARS

where FILENAME is the name of the file and NUMCHARS contains the number of
characters in the file.

Lets say that NUMCHARS contained "20480" (ie. 20K), the read statement would
only read-in 16K of characters as it assumes (i think) NUMCHARS is an
integer (integers go up to 16K) !!

The same problem occurs if you use the "read until CHAR" statement; it will
only read in the first 16K characters !

Has anyone solved this problem?  With an XCMD perhaps ?

Thanks in advance.

          /////////////////////////////////////////////////////////////////////
         //  Renato Iannella  B.App.Sc. AACS                           ///////
        //  South Australian Institute of Technology                     ////
       //  Mathematics and Computer Science Department                   ///
      //  The Levels 5095 Australia                                      //
     //  Phone# +61 8 343 3033       ACSNET & EAN: mari@levels.sait.oz  //
    //  Fax# +61 8 349 6939      JANET: mari%levels.sait.oz@uk.ac.ukc  //
   ///                       ARPANET & CSNET: mari@levels.sait.oz.au  //
  ////                     BITNET: mari%levels.sait.oz@uunet.uu.net  //
 ///////                  UUCP:  uunet!munnari!levels.sait.oz!mari  //
/////////////////////////////////////////////////////////////////////