Commit b1666494 authored by jakeburden's avatar jakeburden

task 1: files and errors

parent 2171a2f0
This file contains a title and list of URLs and empty lines
https://docs.rs/lyon_core/0.8.0/lyon_core/
https://docs.rs/gdnative-core/0.7.0/gdnative_core/
https://docs.rs/little-endian/1.0.0/little_endian/
https://docs.rs/grin_keychain/3.0.0/grin_keychain/
\ No newline at end of file
use std::fs::File;
fn main() {
println!("Hello, world!");
let f = File::open("src/data/content.txt");
match f {
Ok(_file) => println!("File opened!"),
Err(e) => println!("Error: {}", e),
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment