Core Function FileExists
From Sputnik Wiki
FileExists( <file> )
Contents |
Description
Check if a given file exists.
Parameters
file
File name.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
if( FileExists("sputnik.exe") ) { println("File does exist"); } else { println("File does NOT exist"); }
Alternative
if( -e "sputnik.exe" ) { println("File does exist"); } else { println("File does NOT exist"); }