[rust-dev] read file line by line

Mic mictadlo at gmail.com
Tue Apr 3 01:04:14 PDT 2012

I found read_line, but I do not how to convert the following Python code
(skip first line and print all other lines from a file) to Rust.

f = open(file_name, 'r')
f.next()                        #skip line
for line in f:
    print line

How rust handle exceptions?

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120403/e114685c/attachment.html>

More information about the Rust-dev mailing list