Build Status Latest Version

Don't forget to add the plugin to your crate:

```rust

![feature(plugin)]

![plugin(text_io)]

```

And on beta:

```rust

[macrouse] extern crate textio;

```

Examples

```rust // read until a whitespace and try to convert what was read into an i32 let i: i32 = read!();

// read until a whitespace (but not including it) let word: String = read!(); // same as read!("{}")

// read until a newline (but not including it) let line: String = read!("{}\n");

// expect the input "" or panic // read until the next "<" and return that. // expect the input "/i>" let stuff: String = read!("{}");

// note, reading multiple values isn't possible in beta // read until a comma, parse what you read to an i32 // skip the comma (read and forget) // skip the blank (read and forget) // read until any whitespace let tup: (i32, String) = read!("{}, {}"); ```