Module read

Source
Expand description

Functions to read from files.

Functionsยง

head
Reads the first N bytes from a file.
head_to_string
Reads the first N bytes from a file and return them as a string.
head_to_string_with_message
Reads the first N bytes from a file and return them as a string. If the file size is greater than N bytes, the truncation message will be put at the end of the String.