; FilesystemErrorPath 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 "" ; FilesystemErrorPath returns the full path of the file the ; failed operation was working on - so an error dialog can name ; exactly which save file could not be read Print "FilesystemErrorPath:" Print " "+FilesystemErrorPath() Print "" ; Its companions describe the failure and give the raw code Print "FilesystemError: "+FilesystemError() Print "FilesystemErrorCode: "+FilesystemErrorCode() Print "" Print "Press any key to close the example" WaitKey End