fn readAll(self: File, buffer: []u8) ReadError!usize

Returns the number of bytes read. If the number read is smaller than buffer.len, it means the file reached the end. Reaching the end of a file is not an error condition.

Parameters

self: File,
buffer: []u8,