Load a text file with ZEN style.
use std; import std::io; fn main() { let content = std::io::read_whole_file_str("hello.rs"); std::io::println(#fmt("File 'hello.rs' contains:\n'%s'", result::get(content))); }
Posted on 2012-01-22 23:09 with rust in 0.004 sec.