class in_channel_obj : in_channel ->
object
.. end
method input : string -> int -> int -> int
#input buf pos len
reads up to
len
characters from the
object, storing them in string
buf
, starting at character
number
pos
. It returns the actual number of characters read,
between 0 and
len
(inclusive). A return value
0
(when
len > 0
) means that the write would block (and we are in
non-blocking mode).
RaisesEnd_of_file
when the end of the stream is reached, and
there are no more octets that could be read.
Invalid_argument
"Socket.input" if pos
and len
do
not designate a valid substring of buf
.
method input_char : unit -> char
method input_line : unit -> string
method really_input : string -> int -> int -> unit
method input_till : char -> string -> int -> int -> int
method input_all_till : char -> string
method close_in : unit -> unit