Checks if the given object is a filestream-object. A filestream-object you usually get, when calling fileOpen-function.
isFileObject(object);
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
object | variableName | Yes | The object you want to check, if it is a filestream-object. |
Checks if the fileObj is a filestream-object.
filePath = expandPath("./myfile.txt");
fileObj = fileOpen(filePath);
writeOutput(isFileObject(fileObj));