blob: 6487f9cb12c70a3afdc337feb487d39ef7333db3 [file]
use std::io::prelude::*;
use std::fs::File;
use runfiles::Runfiles;
fn main() {
let r = Runfiles::create().unwrap();
let mut f = File::open(r.rlocation("examples/hello_runfiles/hello_runfiles.rs")).unwrap();
let mut buffer = String::new();
f.read_to_string(&mut buffer).unwrap();
println!("This program's source is {} characters long.", buffer.len());
}