Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::fs::File;
- fn main() {
- let f = File::open("hello.txt");
- let f = match f {
- Ok(somefile) => {somefile},
- Err(somerr) => {
- println!("{:?}", somerr ),
- },
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement