Garden 🌻

__fs.gdn::read_file_bytes()

Read the contents of file path as a list of bytes.

Each byte is returned as an Int in the range 0 to 255.

Example
import "__fs.gdn" as fs
fs::read_file_bytes(Path{ p: "/tmp/foo.txt" })
Source Code
public fun read_file_bytes(path: Path): Result<List<Int>, String> {
  __BUILT_IN_IMPLEMENTATION
}