> The system module has readLine but not readWord

There are dozen of ways to do it and dozen of examples -- some are optimized 
for performance, some more for easy usage.

For example for lines of text, there is split iterator which can split the line 
into words.

Miram already recommends strscan module.

Maybe this can be helpful for performance:

[https://nim-lang.org/blog/2017/05/25/faster-command-line-tools-in-nim.html](https://nim-lang.org/blog/2017/05/25/faster-command-line-tools-in-nim.html)

Rosetta-Code should also have examples, and Dom's book too. 

Reply via email to