GetEmbeddedFileName Function

Returns the actual file name used for an embedded file specified using '.FILE' and '.ENDF'.


Number Type Compulsory Default Description
1 string Yes File path

Argument 1

Name of embedded file. That is the name used after .FILE


Return type: string

'.FILE' and '.ENDF' allow file to be embedded in netlist and this is implemented by writing the contents to a real file. This function returns the full path name of the real file.


This function can be used to access an embedded file in a script called using the .POST_PROCESS statement. This is useful, for example, to embed data in a netlist to be accessed in that script. This function may also be called after a simulation has been run to access data contained in any .FILE/.ENDF block.