file_existsfile_existsFileExistsFileExists (Operator)

Name

file_existsfile_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)

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

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

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

static Hlong HMisc::FileExists(const wchar_t* FileName)   (Windows only)

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

static int HMisc.FileExists(string fileName)

Description

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

Execution Information

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename HTupleHTupleHtuple (string) (string) (HString) (char*)

Name of file to be checked.

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

FileExistsFileExistsFileExistsFileExistsfileExists (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

boolean number.

Result

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

Possible Successors

open_fileopen_fileOpenFileOpenFileOpenFile

Alternatives

open_fileopen_fileOpenFileOpenFileOpenFile

Module

Foundation