Represents a reader which will wrap string content as a channel.
Constructs a channel to read string.
Reads the characters from the given string.
1io:StringReader reader = new("Some text");2string|io:Error? person = reader.readChar(4);
- nCharacters int
Number of characters to be read