Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

fileLength

fileLength( 
S_name 
) 
=> x_size / 0

Description

Determines the number of bytes in a file.

A directory is viewed just as a file in this case. Uses the current SKILL path if a relative path is given. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.

Arguments

S_name

Name of the file you want the size of.

Value Returned

x_size

Number of bytes in the S_name file.

0

The file exists but is empty. Signals an error if the named file does not exist.

Examples

Return value is system-dependent.

fileLength("/tmp")                   
=> 1024

Assuming the named file exists and is 32157 bytes long.

fileLength("~/test/out.1")           
=> 32157

Related Topics

isFile

isFileName


Return to top
 ⠀
X