On Sat, May 18, 2019 at 10:18:42AM -0700, C K Kashyap wrote: > Okay ... I think I can see how I can use web.l .... One problem I am facing > is to figure out how to read from *ContLen bytes from the input. What's a > good way to read *ContLen bytes from the input? Using (char) in a loop does > not seem right since it reads characters off the stream.
It depends where you want to put the data. Writing to a file (or similarly to a pipe) is easy: (out "File" (echo *ContLen)) If you want them in a list or string, you may need 'char' in a loop (make (do *ContLen (link (char)))) but note that a char may be up to 4 bytes. Not really suitable. Also easy, but rather useless, is reading it into a big number (rd *ContLen) # Just kidding ;) ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe