Standard Library
Input & Output
| Form | Direction | Description |
|---|---|---|
ask "prompt" | in | Read a line from the console; yields text. |
proclaim expr | out | Print to stdout. |
whisper expr | out | Print to stderr. |
read expr | in | Read a file (path string); yields its text. |
write data to path | out | Write a value to a file path. |
summon name = ask "What is your name? "
proclaim "Hello, " + name
summon body = read "input.txt"
write body to "output.txt"
whisper "done" // goes to stderr
read and write are always native (real files), in every zone.