Last updated:
0 purchases
scanner
scanner #
Port of Java's Scanner class to Dart.
Works asynchronously.
Usage #
Printing the contents of a file:
import 'dart:io';
import 'package:scanner/scanner.dart';
main() async {
var file = new File.fromUri(Platform.script.resolve('../README.md'));
var scanner = new Scanner(file.openRead());
while (await scanner.hasNextLine()) {
print(await scanner.nextLine());
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.