Read a specific line from a file: Difference between revisions

no edit summary
No edit summary
Line 1,115:
(call-with-input-file "some-file"
(λ(i) (for/last ([line (in-lines i)] [n 7]) line))))
</lang>
 
=={{header|Rebol}}==
<lang rebol>
x: pick read/lines request-file/only 7
either x [print x] [print "No seventh line"]
</lang>