SolFSStorage.FileExists method

Filter:

Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    

Overview

Tests if a specified file exists.

Declaration

[Pascal]
    function FileExists(FileName: TSolFSString) : Boolean;

[Plain C]
    long _stdcall StorageFileExists(unsigned long Storage, const wchar_t* FileName, char *Exists);

[C++ (DLL/Lib)]
    bool FileExists(unsigned short * fileName)

[C++ (VCL)]
    bool __fastcall FileExists(TSolFSString FileName);

[C++ (.NET)]
    bool FileExists(String* fileName)

[C#]
    bool FileExists(string fileName)

[VB.NET]
    Function FileExists(fileName As String) As Boolean

[Java]
    void fileExists(String fileName);

Parameters

  • FileName - full name of the file.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] Exists - returns 1 if file exists in the Storage,
    0 if file is not present in the storage.

Return value

    True if file exists in the storage.
    False if file is not present in the storage.

     [Plain C]  0 if the function succeeded or one of Error codes if the function failed.

Description

Use FileExists when you need to check if file with specified name is present in the storage.

See also

FindFirst