Xojo.IO.FolderItem.Exists

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aXojo.IO.FolderItem.Exists

Supported for all project types and targets.

Indicates whether the FolderItem exists.

Notes

You can create a FolderItem that does not refer to actual existing file on disk. When you do so, this property returns False.

Sample Code

To check if a file exists:

Var f As New Xojo.IO.FolderItem("test.txt")

If f.Exists Then
// open the file
End If