kirby,

is the most efficient way to get a file size seriously to just peek to the end of it and save the position somewhere

lamp,
@lamp@kitty.haus avatar

@kirby How do u peek at the end of it without knowing the file size bro?

icedquinn,
@icedquinn@blob.cat avatar

@lamp @kirby the OS knows :blobcatpensive2:

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Hentai
  • doujinshi
  • announcements
  • general
  • All magazines