All these Objects are Devices - they have a property which is the "handle" by which they are identified. The handle is either fixed (defined by Euphoria) or is generated using a Constructor assignment. The Euphoria equivalent is to use a creation function (for example, "open" for a file, or "create" in GUIs). A return value of "-1" means that the creation function failed.
get
function
INTEGER
handle to the device
sequence
text
- writes the text to the Output Device
object
obj)
- prints the object to the Output Device
string
format,object
obj) - outputs the object to the Output Device in the given format
atom
from the Input Device
bool
ean value from the Input Device
character
/byte
from the Input Device
integer
from the Input Device
If the string ends in a '\n' then the linefeed will be removed. If Ctrl-Z is pressed then -1 is returned. If end-of-file reached then -1 is returned.
STRING
string containing name of file
string
name,string
mode)
Parameters:
string
name - the name of the file you wish to open
string
mode - the mode of opening the file
string
text)
- displays text on screen and awaits a key
depression