|
IsFileExist
int
IsFileExist(string
filename)
Return
Value
Returns TRUE if specified file exists.
Otherwise returns FALSE.
Parameters
filename
– the name of
the file.
Remarks
Call this
function to determine if the file exists.
Package
Plug in module:
nd_fileplg.npl
Example
The following
example demonstrates the use of IsFileExist.
# Example for IsFileExist
string sFileName =
"c:\1.txt"
if(IsFileExist(sFileName)
== FALSE)
Println("File ", sFileName,
" does not exist")
stop
endif
Output of the example
script:
File c:\1.txt does not exist
|