rust-cfile travis

Rust bindings to C FILE stream

Document

Examples

```rust use std::io::prelude::*; use std::io::{BufReader, SeekFrom}; use cfile::CFile;

let mut f = CFile::open_tmpfile().unwrap(); // open a tempfile

asserteq!(f.write(b"test").unwrap(), 4); // write something to the stream f.flush().unwrap(); // flush stream asserteq!(f.seek(SeekFrom::Start(0)).unwrap(), 0); // seek to the beginning of stream

let mut r = BufReader::new(f); let mut s = String::new(); asserteq!(r.readline(&mut s).unwrap(), 4); // read back the text assert_eq!(s, "test"); ```