alice
library
manual.

Alice Project

The TEXT_IO signature


________ Synopsis ____________________________________________________

    signature TEXT_IO
    structure TextIO : TEXT_IO
  

The Standard ML Basis' TEXT_IO signature.

See also: BinIO, IMPERATIVE_IO, TEXT_STREAM_IO, TextPrimIO


________ Import ______________________________________________________

Imported implicitly.


________ Interface ___________________________________________________

    signature TEXT_IO =
    sig
	structure StreamIO : TEXT_STREAM_IO

	type vector = string
	type elem   = char
	type instream
	type outstream

	val stdIn :        instream
	val stdOut :       outstream
	val stdErr :       outstream

	val openIn :       string -> instream
	val input :        instream -> string
	val input1 :       instream -> char option
	val inputN :       instream * int -> string
	val inputLine :    instream -> string option
	val inputAll :     instream -> string
	val canInput :     instream * int -> int option
	val lookahead :    instream -> char option
	val closeIn :      instream -> unit
	val endOfStream :  instream -> bool
	val mkInstream :   StreamIO.instream -> instream
	val getInstream :  instream -> StreamIO.instream
	val setInstream :  instream * StreamIO.instream -> unit

	val openOut :      string -> outstream
	val openAppend :   string -> outstream
	val openString :   string -> instream
	val output :       outstream * string -> unit
	val output1 :      outstream * char -> unit
	val outputSubstr : outstream * substring -> unit
	val flushOut :     outstream -> unit
	val closeOut :     outstream -> unit
	val mkOutstream :  StreamIO.outstream -> outstream
	val getOutstream : outstream -> StreamIO.outstream
	val setOutstream : outstream * StreamIO.outstream -> unit
	val getPosOut :    outstream -> StreamIO.out_pos
	val setPosOut :    outstream * StreamIO.out_pos -> unit

	val print :        string -> unit

	val scanStream :   ((char, StreamIO.instream) StringCvt.reader -> ('a, StreamIO.instream) StringCvt.reader) -> instream -> 'a option
    end
  

________ Description _________________________________________________

Like the Standard ML Basis' TEXT_IO signature.



last modified 2007/Mar/30 17:10