#2405 No function for reading a null-terminated string?

elyashiv Wed 1 Apr 2015

It doesn't seems to be a function for reading a null-terminated string from a InStream, although it's quite a common task. I can get away with something like that:

stream.readStrToken(4096) { it == '\0' }

but it's seems like too much text for a simple task.

Can this be added?

brian Wed 1 Apr 2015

Good idea, I added one - changeset

Login or Signup to reply.