GetSafeFileName (open)

Generate a filename from a string

Syntax

LOADLIB "wh::files.whlib";

STRING FUNCTION GetSafeFileName(STRING value)

Parameters

STRING value

Value to use for the name

Return value

STRING

Returns a filename that can be safely used as a file or folder name. Returns 'unknown' if it cannot figure out a proper filename

Description

Convert a string into a name which can be safely used as a file or folder name.