In IO::CatHandle§
See primary documentation in context for method readchars
method readchars(IO::CatHandle: Int(Cool) = 65536 --> Str)
Returns a Str
of up to $chars
characters read from the handle. $chars
defaults to an implementation-specific value (in Rakudo, the value of $*DEFAULT-READ-ELEMS
, which by default is set to 65536
). It is NOT permitted to call this method on handles opened in binary mode and doing so will result in X::IO::BinaryMode
exception being thrown.
(my = 'foo'.IO).spurt: 'Raku loves to';(my = 'bar'.IO).spurt: ' meow';with IO::CatHandle.new: ,
In IO::Handle§
See primary documentation in context for method readchars
method readchars(IO::Handle: Int(Cool) = 65536 --> Str)
Reading chars; reads and returns up to $chars
chars (graphemes) from the filehandle. $chars
defaults to an implementation-specific value (in Rakudo, the value of $*DEFAULT-READ-ELEMS
, which by default is set to 65536
). Attempting to call this method when the handle is in binary mode will result in X::IO::BinaryMode
exception being thrown.
(my = 'foo'.IO).spurt: 'I ♥ Raku';given .open