[ The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

library(fromonto)

Redirect input and output streams in a convenient way

Predicates

+Goal from_file ++File
Redirect Goal's standard input stream to File
from_file_body(?, ?, ?)
No description available
+Goal from_stream ++Stream
Redirect Goal's standard input stream to Stream
from_stream_body(?, ?, ?)
No description available
+Goal from_string ++String
Redirect Goal's standard input stream to String
from_string_body(?, ?, ?)
No description available
+Goal onto_file ++File
Redirect Goal's standard output stream to File
onto_file_body(?, ?, ?)
No description available
+Goal onto_stream ++Stream
Redirect Goal's standard output stream to Stream
onto_stream_body(?, ?, ?)
No description available
+Goal onto_string ?String
Redirect Goal's standard output stream to String
onto_string_body(?, ?, ?)
No description available

Other Exports

export op(800, yfx, [from_string, onto_string, from_stream, onto_stream, from_file, onto_file])

Examples

    [eclipse 1]: write(hello) onto_file scratch.
    yes.
    [eclipse 2]: read(X) from_file scratch.
    X = hello
    yes.
    [eclipse 3]: read(X) from_string "s(a,2,[3])".
    X = s(a, 2, [3])
    yes.
    [eclipse 4]: (write(hello), put(0' ), write(world)) onto_string S.
    S = "hello world"
    yes.
    

About


Generated from fromonto.eci on Wed May 15 03:40:54 2002