Scanf

module Scanf

scanf for Ruby

Description

scanf is an implementation of the C function scanf(3), modified as necessary for Ruby compatibility.

the methods provided are String#scanf, IO#scanf, and Kernel#scanf. Kernel#scanf is a wrapper around STDIN.scanf. IO#scanf can be used on any IO stream, including file handles and sockets- scanf can be called either with or without a block-

Scanf scans an input string or stream according to a format, as described below in Conversions, and returns an array of matches between the