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

writeTable

writeTable( 
S_fileName 
o_table 
) 
=> t / nil

Description

Writes the contents of an association table to a file with one key/value pair per line.

This function is for writing basic SKILL data types that are stored in an association table. The function cannot write database objects or other user-defined types that might be stored in association tables.

Arguments

S_fileName

Name of the print file (either a string or symbol) to which the table contents are to be written.

o_table

Association table from which the data is accessed.

Value Returned

t

If the data is successfully written to the file.

nil

Unable to write the data to the file.

Examples

writeTable("inventory" myTable)    
=> t
writeTable(noFile myTable)
=> nil

Related Topics

Input Output Functions

makeTempFileName

readTable


Return to top
 ⠀
X