0 purchases
easy input
Easy input #
A simple Python-style package for working with stdin and files.
Links #
Pub dev
Documentation
Issue tracker
Usage #
import 'dart:io';
import 'package:easy_input/easy_input.dart';
void main() async {
var line = input();
print('line: $line');
final file = open('kek.txt', mode: FileMode.write);
file.writeStringSync('kek1\n');
file.writeStringSync('kek2\n');
await file.close();
final file2 = open('kek.txt');
print('line1: ${input(file: file2)}'); // kek1
print('line1: ${input(file: file2)}'); // kek2
file2.close();
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.