file_read_all_slice

Declaration

file_read_all_slice :: fn (file: File) []u8

Description

Read content of file into slice array of characters. New memory is allocated for the slice on the heap, call slice_terminate when slice is no longer needed.

Arguments

  • file File to be read.

Result

Slice of characters containing file content.

Declared in: file.bl