Io module

read_file

procedure · 1 overloadSource

The whole content of a file, in memory from context.allocator (free it with free).

read_file :: (path: string) -> ([] u8, Io_Error)

The whole content of a file, in memory from context.allocator (free it with free).

Parameters

path: string

Returns

[] u8

See also