1. Computing
Michael Morin

ARGF, a Shortcut for Scripts

By April 30, 2013

Follow me on:

Many command line scripts simply read all the files mentioned to them as one long stream of data, the last file of one byte side by side with the first byte of the next file.  Ruby provides you with a very simple way to do this, by using the ARGF object combined with some simple option parsing.

No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.