Read from Standard Input
- stdin.readLineSync
import 'dart:io';
void main() {
print("What's your name?");
var name = stdin.readLineSync();
print("How are you $name, today?");
}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import 'dart:io';
void main() {
print("What's your name?");
var name = stdin.readLineSync();
print("How are you $name, today?");
}