IsFileObject

Description

Checks if an object passed is the fileStream object that you get upon calling FileOpen() is valid or not.

Returns

True, if the value is a valid ColdFusion file object.

History

ColdFusion (2018 release): Introduced named parameters.

ColdFusion 11: Added the function.

Category

Syntax

IsFileObject(file)

See also

Parameters

Parameter

Description

file

The file object.

Example

 

<cfscript>
    theDir=GetDirectoryFromPath(GetCurrentTemplatePath()); 
    theFile=theDir & "Sample files/Test.txt";
    a=FileOpen(theFile);
    writeoutput(IsFileObject(a));
</cfscript>

Output

YES

 Adobe

Gaukite pagalbą greičiau ir lengviau

Naujas vartotojas?

Adobe MAX 2024

Adobe MAX
Kūrybiškumo konferencija

Spalio 14–16 d. Miami Beach ir internetu

Adobe MAX

Kūrybiškumo konferencija

Spalio 14–16 d. Miami Beach ir internetu

Adobe MAX 2024

Adobe MAX
Kūrybiškumo konferencija

Spalio 14–16 d. Miami Beach ir internetu

Adobe MAX

Kūrybiškumo konferencija

Spalio 14–16 d. Miami Beach ir internetu