The final part of our tour of getting information in and out of a program is using files. As far as Rust is concerned, a file is just another stream, with the exception that this stream goes elsewhere.
It is important when using anything to do with files that the try! macro is used to trap all errors.