1. A question of basic I/O procedure
- Posted by Raul Benavides Cordoba <f62becor at UCO.ES> Jan 21, 1997
- 1095 views
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
2. Re: A question of basic I/O procedure
- Posted by David Alan Gay <moggie at INTERLOG.COM> Jan 21, 1997
- 1110 views
> 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