Extensions.File.GetFileSize
Jump to navigation
Jump to search
Contents
Classification
Name | GetFileSize |
Short Description | Retrieves the size of the specified file |
Class | Term |
Extension | OTX File extension |
Group | File related Terms |
Exceptions | FileAccessException FileLockException FileNotFoundException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
IntegerTerm File.GetFileSize(StringTerm path);
Description
The GetFileSize activity retrieves the size of the specified file in bytes.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Integer | Returns the size of the specified file in bytes. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Path | String | Term | - | [1..1] | The file to check. The path parameter is permitted to specify relative or absolute path information. |
OTL Examples
/// Local Declarations
Integer Integer1;
/// Flow
Integer1 = File.GetFileSize("file:///D:/abc.txt");
See also
CreateTempDirectory
GetFilePath
GetFilesFromDirectory
IsDirectory
IsEndOfFileReached
IsFile
OpenFileForRead
OpenFileForWrite
ReadBytes
ReadFile
ReadLine