How to check an error at opening a file but without closing its file descriptor?

use std::path;
use std::rt::io;
use std::rt::io::file;

let filename = "/some/path";
let f = file::open(&path::Path::new(filename), io::Open, io::Read);
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to