Moving to GitHub Gists
append new element to the array
1
2
string $faces[];
$faces[size($faces)] = $newFace;
get file list in the specified directory
1
2
string $dir = "C:\\temp\\";
string $fileList[] = `getFileList -folder $dir -fs "*.txt"`;

if (size($fileList) > 0)
{
string $FileName = $dir + $fileList[0];
//.. do something
}

extract file name from the full path
1
2
string $FullFileName = "C:\\temp\\test.txt";
string $FileName = basename($FullFileName, ("."+fileExtension($FullFileName)));

copy object transformation

Leave a Reply

Your email address will not be published. Required fields are marked *