> I don't know how to do certain things in Nim. Like fscanf(f, "%s", buffer).
Check out [readLine](https://nim-lang.github.io/Nim/io.html#readLine%2CFile%2Cstring) If you haven't already, also check out [Nim for C programmers](https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers). I am not a C programmer, so I will let someone more familiar with C to document the perfect equivalent of C fscanf in there.