ClassesClassesClassesClasses | | | | Operators

file_existsfile_existsFileExistsfile_existsFileExistsFileExists (Operator)

Name

file_existsfile_existsFileExistsfile_existsFileExistsFileExists — Check whether file exists.

Signature

file_exists( : : FileName : FileExists)

Herror file_exists(const char* FileName, Hlong* FileExists)

Herror T_file_exists(const Htuple FileName, Htuple* FileExists)

Herror file_exists(const HTuple& FileName, Hlong* FileExists)

void FileExists(const HTuple& FileName, HTuple* FileExists)

static Hlong HMisc::FileExists(const HString& FileName)

static Hlong HMisc::FileExists(const char* FileName)

void HOperatorSetX.FileExists(
[in] VARIANT FileName, [out] VARIANT* FileExists)

Hlong HMiscX.FileExists([in] BSTR FileName)

static void HOperatorSet.FileExists(HTuple fileName, out HTuple fileExists)

static int HMisc.FileExists(string fileName)

Description

The operator file_existsfile_existsFileExistsfile_existsFileExistsFileExists checks whether the indicated file already exists. If this is the case, the parameter FileExistsFileExistsFileExistsFileExistsFileExistsfileExists is set to TRUE, otherwise to FALSE.

Parallelization

Parameters

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of file to be checked.

Default value: '/bin/cc' "/bin/cc" "/bin/cc" "/bin/cc" "/bin/cc" "/bin/cc"

FileExistsFileExistsFileExistsFileExistsFileExistsfileExists (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

boolean number.

Result

If the parameters are correct the operator file_existsfile_existsFileExistsfile_existsFileExistsFileExists returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.

Possible Successors

open_fileopen_fileOpenFileopen_fileOpenFileOpenFile

Alternatives

open_fileopen_fileOpenFileopen_fileOpenFileOpenFile

Module

Foundation


ClassesClassesClassesClasses | | | | Operators