Ahh ok so to be correct you have to keep reading until you get an empty read?
Maybe I don’t need to query the file size at all?
Maybe I don’t need to query the file size at all?
https://man7.org/linux/man-pages/man2/read.2.html
> On success, the number of bytes read is returned (zero indicates end of file), [...] It is not an error if this number is smaller than the number of bytes requested