December 2014
Intermediate to advanced
164 pages
2h 14m
English
CHAPTER 14
![]()
Input/Output
Input/Output within Ruby is the ability to bi-directionally communicate between Ruby and an external resource, such as a file or network resource. It is worth noting that Input/Output is not just restricted to File processes, as often wrongly assumed. Ruby Input/Output is defined from the single base class IO. Derived from the IO class, we then have more specialized, but otherwise similar subclasses, such as File and BasicSocket that deal with the Input/Output for the particular type of resource.
Previously, we have dealt with Standard Input/Output, which allows us to communicate interactively with the user running our ...
Read now
Unlock full access