What is Nostr?
vaartis in A FUNNY LITTLE CYCLE /
npub15c7…suze
2024-11-01 10:19:34

vaartis in A FUNNY LITTLE CYCLE on Nostr: > Explicitly set the file size, possibly truncating the file. > This way, the size ...

> Explicitly set the file size, possibly truncating the file.
> This way, the size will be truncated if the save file is smaller, and expanded if it's bigger.
> The documentation does not say, whether Write truncates the file if the specified size is smaller
> than the old contents, but the wording implies that it simply writes the amount of bytes told
> and doesn't do anything else. So, just to be safe, set the size by hand.

Sometimes I am impressed by myself. I really wrote this elaborate explanation, huh
Author Public Key
npub15c7g2z0hanhkrzgfrpdmjxeewg0203p00j6avlwz5hg2es2q0ems4lsuze