Conversation
Notices
-
Embed this notice
lamp (lamp@kitty.haus)'s status on Thursday, 18-Jan-2024 05:46:35 JST lamp @kirby How do u peek at the end of it without knowing the file size bro? -
Embed this notice
iced depresso (icedquinn@blob.cat)'s status on Thursday, 18-Jan-2024 05:46:35 JST iced depresso @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. -
Embed this notice
KIRBY IN HELL (kirby@mashtodon.alterracloud.com)'s status on Thursday, 18-Jan-2024 05:46:36 JST KIRBY IN HELL is the most efficient way to get a file size seriously to just peek to the end of it and save the position somewhere
-
Embed this notice