How do I read input from the keyboard?


You can use the special stdin file, which you can also access (if you prefer) as FileStream stdin. Like this:

   line := stdin nextLine

or if you want a number

   n := stdin nextLine asInteger

where is the dot(.)(.) from the end?
or is it not needed?

User login