The Rd interface defines GetText as GetText(rd: T; len: CARDINAL): TEXT;<div><br></div><div>I've noticed in different values for len in different places.  Some use Rd.Length(rd) while others use LAST(CARDINAL).</div><div>
<br></div><div>The latter would limit the text to about 2GB on a 32bit system, correct? But does Rd.Length() always know what the length will be?</div><div><br></div><div>The interface for Rd states this for Rd.Length():</div>
<div> "If len(rd) is unknown to the implementation of an intermittent reader, Length(rd) returns -1."</div><div><br></div><div>So my question is, which should I use? Another option would be reading in some arbitrary amount and then looping until EOF. Which method is best?</div>
<div><br></div><div>Thanks.</div>