and.. it depends. in Nim the stream interface doesn't know the size of a stream, but the file handle does, so you have to ask the file handle what the size is. i think a similar situation existed in Delphi and some others. some frameworks you have to do a stupid thing like seek to the zeroeth offset from the end of the file.
Add comment