|
|
|
Online Scripting Reference
|
|
fileExists
|
Purpose
|
Checks to see if a file exists.
|
|
Syntax
|
fileExists var {filename}
var: The variable to hold the result of the file check. This variable will be set to TRUE (1) if the file exists, or FALSE (0) if it does not.
{filename}: The name of the file to check.
|
|
Notes
|
This command is useful for finding out if a file exists before attempting to read from it.
|
|
Example
|
# load bust list
if ($BustFile <> "")
fileExists $exists $BustFile
if ($exists)
setArray $BustList SECTORS
setVar $i 1
read $BustFile $bust $i
while ($bust <> EOF)
setVar $BustList[$bust] 1
add $i 1
read $BustFile $bust $i
end
end
end
|
Return to item listing |
|
|