Handling files

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset