Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!vsi1!altnet!uunet!munnari!mimir!hugin!augean!sirius!eco!nt!levels!mari From: mari@levels.sait.edu.au (Renato Iannella CC2-4 X3033) Newsgroups: comp.sys.mac.hypercard,aus.mac Subject: Read file 16K limit problem Message-ID: <455@levels.sait.edu.au> Date: 7 Oct 88 13:06:55 GMT Organization: Sth Australian Inst of Technology Lines: 34 -- 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 // /////////////////////////////////////////////////////////////////////