GetDiskResource (open)
Get an existing file from disk as a blob
Syntax
LOADLIB "wh::files.whlib";
BLOB FUNCTION GetDiskResource(STRING path, RECORD options)Parameters
STRING pathPath to the file to open.
RECORD optionsOptions
BOOLEAN allowmissingIf set to TRUE, don't throw if the resource doesn't exist but return a DEFAULT BLOB
Return value
BLOBA blob with the file. Throws if the file does not exist