SolFSStorage.FileExists method


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

SolFSStorage     See also    


Tests if a specified file exists.


    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)

    bool FileExists(string fileName)

    Function FileExists(fileName As String) As Boolean

    void fileExists(String fileName);


  • 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.


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

See also