file_existsfile_existsFileExistsFileExistsfile_exists (Operator)

Name

file_existsfile_existsFileExistsFileExistsfile_exists — 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)

def file_exists(file_name: str) -> int

Description

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

Execution Information

Parameters

FileNameFileNameFileNameFileNamefileNamefile_name (input_control)  filename HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of file to be checked.

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

FileExistsFileExistsFileExistsFileExistsfileExistsfile_exists (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Boolean number.

Result

If the parameters are correct the operator file_existsfile_existsFileExistsFileExistsFileExistsfile_exists returns the value TRUE. Otherwise, an exception is raised.

Possible Successors

open_fileopen_fileOpenFileOpenFileOpenFileopen_file

Alternatives

open_fileopen_fileOpenFileOpenFileOpenFileopen_file

Module

Foundation