Functionsยง
- Retrieves the size of a file at the specified
file_path
in bytes. - Reads the content of a file at the specified
file_path
and converts it to the typeT
. The conversion is done by using theFrom<Vec<u8>>
trait, which allows the file content (read as raw bytes) to be converted into a typeT
. - Writes the provided content to a file at the specified
file_path
. If the file does not exist, it will be created. If the file exists, the content will be appended to it.