[racket] reading null-terminated byte-string?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Thu Jan 2 09:42:08 EST 2014

There are many ways to read bytes (and I assume you mean 'byte' not 'char' or 'string'). Here is how to read a complete line: 

Welcome to Racket v6.0.0.1.
> (read-bytes-line)
#""
> (read-bytes-line)"hello world, how is david"
#"\"hello world, how is david\""


The definitive reference is at http://docs.racket-lang.org/reference/Byte_and_String_Input.html

If this is not helpful, try to ask the question again. -- Matthias





On Jan 1, 2014, at 12:31 PM, David Richards <contactguitarist at gmail.com> wrote:

> 
> How do I read a value-terminated byte-string from an input port (i.e. a null-terminated string)?
> 
> dr
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.