| From: | Xavier Messersmith |
| Date: | 16 Oct 2000 at 10:19:09 |
| Subject: | Re: reading a file containing some really long lines |
On 15-Oct-00, Bernd Gollesch wrote:
> If you have lines longer then 1000 characters you have to do some
> special code becaus in ARexx READLN() only return a maximum of 1000 chars.
>
> I'm using the following function:
>
> /*------------------------------------*/
> myREADLN: PROCEDURE
> PARSE ARG infile
>
> in = READLN(infile)
> ret = in
> DO WHILE LENGTH(in) = 1000
> in = READLN(infile)
> ret = ret || in
> END
>
> RETURN ret
> /*------------------------------------*/
And what of files that have one or more lines that are exactly 1000 characters
in size?
Not a pretty failure mode...
ARexx mailing list - No flames, no overquoting, no crossposting.
Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com