use std::fs::File;
use std::io::prelude::*;
use std::path::Path;
use std::str::FromStr;
use pakige::deb::*;
fn main ()
{
let path = Path::new("test.control");
let display = path.display();
let mut file = match File::open(&path) {
Err(why) => panic!("couldn't open {}: {}", display, why),
Ok(file) => file,
};
let mut s = String::new();
match file.read_to_string(&mut s) {
Err(why) => panic!("couldn't read {}: {}", display, why),
Ok(_) => ()
}
}