SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.file‎ > ‎

Exists


Platform Objects


Description

Determines if a file exists within a folder.

Syntax


target.file.Exists(folder_file)

folder_file (input) - the folder in which you want to check for the file

Return value


This function returns a boolean value (true/false)

Sample
 
'---------- Start ----------
Function Start

    if target.file.Exists( "C:\FileTestFolder\trgFileSample.txt" ) = true then
    trg.Message( "It exists" )
    else trg.Message( "It does not exist" )
    end if

End Function

See also


Platform Objects and Methods
target.file.Delete
target.file.GetDate
target.file