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

readTable

readTable( 
S_fileName 
o_table 
) 
=> t / nil

Description

Reads and appends the contents of a file to an existing association table.

Prerequisites

The file submitted must have been created with the writeTable function so that the contents are in a usable format.

Arguments

S_fileName

File name (either a string or symbol) from which to read the data.

o_table

Association table to which the file contents are appended.

Value Returned

t

The data is read and appended.

nil

The data is not read and appended.

Examples

myTable = makeTable("table1")    
=> table:table1
myTable2 = makeTable("table2")
=> table:table2
myTable["three"] = 3
=> 3
writeTable("table.out" myTable)
=> t
readTable("table.out" myTable2)
=> t

Related Topics

makeTempFileName

writeTable


Return to top
 ⠀
X