Module BC_IO


module BC_IO: sig  end
Deprecated. You shouldn't use this module.
Input/Output functions. You probably should use the Stream module for doing the `pushing back' of input, rather than using this module.


type in_channel
type of input channel. It is different from the in_channel in Pervasives in that strings may be `put back'

val of_in_channel : Pervasives.in_channel -> in_channel
conversion to Pervasives.in_channel
val to_in_channel : in_channel -> Pervasives.in_channel
conversion from Pervasives.in_channel
val open_in : string -> in_channel
open a file for input stream
val close_in : in_channel -> unit
close the file
val input_line : in_channel -> string
read a line from in_channel
val input_char : in_channel -> char
read a single character from in_channel
val input_byte : in_channel -> int
same as input_char but return 8-bit integer representing the character
val uninput_line : in_channel -> string -> unit
`push back' a line to in_channel. The line will appear on the next input. (A '\n' will be added at the end of the string)
val uninput_string : in_channel -> string -> unit
`push back' a line to in_channel. The line will appear on the next input. (A '\n' will not be added at the end of the string)
val uninput_char : in_channel -> char -> unit
`push back' a character to in_channel. The character will be read on the first character of the next input
val uninput_byte : in_channel -> int -> unit
`push back' a byte to in_channel. The character will be read on the first character of the next input. raises Invalid_argument if the value is less then 0 or greater than 255
val input_line_cm : in_channel -> string
Same as input_line except ignoring lines that start with '#' and empty.