HALCON Reference Manual 10.0.2
Table of Contents / File / Misc ClassesClassesClasses | | | Operators

file_existsfile_existsfile_existsFileExistsFileExists (Operator)

Name

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

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

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_existsfile_existsFileExistsFileExists checks whether the indicated file already exists. If this is the case, the parameter FileExistsFileExistsFileExistsFileExistsfileExists is set to TRUE, otherwise to FALSE.

Parallelization

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Name of file to be checked.

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

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

boolean number.

Result

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

Possible Successors

open_fileopen_fileopen_fileOpenFileOpenFile

Alternatives

open_fileopen_fileopen_fileOpenFileOpenFile

Module

Foundation


Table of Contents / File / Misc ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH