I’m seeing that stdin.readLineSync() returns most effective 255 or 256 characters on home windows cmd or Terminal. What am I doing flawed?

Because the headline says, stdin.readLineSync() refuses to head past 255 chars after I input a string.

I’ve attempted converting encoding to latin1 or utf8, but it surely behaves the similar.

I do not see somebody point out this drawback any place.

Pattern code that displays this drawback:

void primary() {
String? phrase = stdin.readLineSync();

if( phrase != null) {
print(“phrase entered:$phrase”);

String? word1 = stdin.readLineSync(encoding: utf8);

if( word1 != null) {
print(“word1 entered:$word1”);


View Reddit by means of vishalxlView Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com