reader 1.0.0 copy "reader: ^1.0.0" to clipboard
reader: ^1.0.0 copied to clipboard

Lightweight library that allows to read single strings, ints and doubles from stdin in a simple and straightforward way.

Reader #

A library that allows reading single strings, ints and doubles from stdin in a simple and straightforward way.

Usage #

import 'package:reader/reader.dart';

main() {
  final Reader reader = Reader.stdin();
  // Input: Hey 1 2.3
  final String s = reader.nextString(); // Hey 
  final int i = reader.nextInt(); // 1
  final double d = reader.nextDouble(); // 2.3 
}

Complete example at example.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
40
pub points
8%
popularity

Publisher

unverified uploader

Lightweight library that allows to read single strings, ints and doubles from stdin in a simple and straightforward way.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on reader