Update: Now it works (with my real world code). Kind of. But now the problem has shifted to a string field right after the IpAddress field of my struct/object.
As I need to be productive I can't afford to lose a lot of time digging through Nim's libraries' sources (again: Docs! We need good docs if we want Nim to become a language for professional use!) and experimenting. So I got it stable with a quick hack. Nim's filestream.write(someString) does _not_ write out the string length, so I simply write 2 bytes (enough for my case) with the length of the string field myself and upon reading it from file I read that length, do a `mystr.setLen(tmpLen)` plus when reading the string in the next step I don't use `mystr.sizeof` but `tmpLen` as parameter for the read proc. Possibly not needed after the `setLen()` but as I said I can't afford long experiments and I need _reliable_ code.
