; FilesystemError Example ; ----------------------- ; Requires Extended mode. ; Try to hash a save file that does not exist - a recoverable ; failure that returns empty and sets the filesystem diagnostics digest$=Sha256File("missing_save_example.json") Print "Sha256File returned '"+digest+"' (empty = failed)" Print "" ; FilesystemError returns a human-readable description of what ; went wrong - ideal for logs and error dialogs Print "FilesystemError:" Print " "+FilesystemError() Print "" ; Its companions add the raw code and the exact path involved Print "FilesystemErrorCode: "+FilesystemErrorCode() Print "FilesystemErrorPath: "+FilesystemErrorPath() Print "" Print "Press any key to close the example" WaitKey End