https://github.com/avdosev/easy_input_dart
easy input for dart
https://github.com/avdosev/easy_input_dart
Last synced: 25 days ago
JSON representation
easy input for dart
- Host: GitHub
- URL: https://github.com/avdosev/easy_input_dart
- Owner: avdosev
- License: mit
- Created: 2021-11-28T11:33:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T13:12:06.000Z (over 4 years ago)
- Last Synced: 2025-10-22T23:51:38.283Z (10 months ago)
- Language: Dart
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy input
A simple Python-style package for working with stdin and files.
## Links
[Pub dev][pubdev]
[Documentation][docs]
[Issue tracker][tracker]
## Usage
```dart
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();
}
```
## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/avdosev/easy_input_dart/issues
[pubdev]: https://pub.dev/packages/easy_input
[docs]: https://pub.dev/documentation/easy_input/latest/