Skip to content

file_read_all

Declaration

file_read_all :: fn (file: File) string

Description

Load whole content of the file into the string buffer. Call string_delete when string buffer is no longer needed. When file is empty, function will return an empty string.

Arguments

  • file File to be read.

Result

String containing file content or empty string.

Declared in: file.bl