easy_input 0.1.0 copy "easy_input: ^0.1.0" to clipboard
easy_input: ^0.1.0 copied to clipboard

A simple Python-style package for working with stdin and files.

Easy input #

A simple Python-style package for working with stdin and files.

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();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

2
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A simple Python-style package for working with stdin and files.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on easy_input