Ref: http://ask.make-money-article.com/que/11122732
import 'dart:async';
import 'dart:io';
import 'dart:convert';
void main() {
readLine().listen(processLine);
}
Stream readLine() => stdin
.transform(UTF8.decoder)
.transform(new LineSplitter());
void processLine(String line) {
print(line);
}
沒有留言:
張貼留言