file class : Exists getter
Description
Gets a value that indicates whether the file is exist.
Syntax
fileInstance.Exists
Arguments
None
Return value
Class | Description |
bool | Value that indicates whether the file is exist. |
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | bool exist = f.Exists; |
Notes
It's a wrapper of the System.IO.FileInfo.Exists property.
If the file is already exist, return true. Otherwise, return false.