I'm trying to read from /dev/urandom
, but because it's a virtual, infinite file, the task just hangs. Is there a way in basic-cli to read just a set amount of files from a file or stream?
Not currently. We could implement it.
What would youbexpect the API to be? File.readNBytes
or similar?
We just added https://github.com/roc-lang/basic-cli/pull/206
Yeah, something like that – or if more options are available, then File.readWithOptions { bytes : U64 }
or something.
Last updated: Jul 06 2025 at 12:14 UTC