Home Notices Documents Classes Download Others Rice
Classes  >  file  >  Exists
file class : Exists getter

Description

Gets a value that indicates whether the file is exist.

Syntax

fileInstance.Exists

Arguments

None

Return value

ClassDescription
boolValue 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.

Links for reference

Copyright © Rice All rights reserved.