Compiler message is very clear. There is only proc setPosition(s: Stream; pos: 
int) which takes an non optional int as second parameter. So call 
file.setPosition() is invalid. I have no idea what you wants to do exactly, 
maybe you assume that there is a default parameter to setPosition()? There is 
none in this case, so maybe use file.setPosition(0). See 
[https://nim-lang.org/docs/lib.html](https://nim-lang.org/docs/lib.html)

Reply via email to