Hi Guys,
It's another time that I'm stuck learning Nim with Python Crash Course book. Now it's time for exceptions. The point is that program handles IOError that file is missing on disk (on purpose - like in the book) but still gives info about amount of words. Could anyone tell how to prevent him from giving that info if file is missing? Code and output here:
https://play.nim-lang.org/#ix=2SsN
Thank you,