1. A question of basic I/O procedure

Hi to All,

            Can somebody tell me what is the basic input/output procedure?
  I mean, how can I write the expression to the screen and how can I
  get it then to work with it.

---------------------------------------------------------------------------
Thank you

new topic     » topic index » view message » categorize

2. Re: A question of basic I/O procedure

>   Hi to All,
>
>             Can somebody tell me what is the basic input/output
procedure?
>   I mean, how can I write the expression to the screen and how can I
>   get it then to work with it.

Well, you have many commands at your disposal to write things to the
screen. Here are two of them:

a) print(1, object value) - prints data in it's true Euphoria
representation. This means all atoms will be displayed as numbers and all
sequences will appear as sequences (natch)

b) puts(1, object value) - prints data as an ASCII value. This means the
atom 65 will be displayed as A, and sequences will appear as text strings
(i.e. {68,65,86,73,68} will be displayed as DAVID).

Notice 1 is to be used for displaying to the screen. 0 is used for keyboard
input and is used in  commands like get(), getc() and gets().

Hope this helps.

David Gay
http://www.interlog.com/~moggie/euphoria.htm

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu