Struggling to simply read from a file?

Personally, I’d avoid assigning the interface to a variable at all, even a pointer. Just do file_reader.interface.readSliceAll(&buffer). It’s longer, but I feel it’s perfectly readable and prevents this error from occuring in the first place.