DADiSP Worksheet Functions > Function Categories > Data Input/Output Functions > READTB

 

READTB

Purpose:

Reads a binary table.

Syntax:

READTB("filename")

"filename"

-

A string, the name of the binary table file.

Returns:

A series or array.

Example:

writetb("bin.dat", SINT, {{1, 2, 3}, {4, 5, 6}});

mydata = readtb("bin.dat");

 

writes the 2x3 array

 

{{1, 2, 3},

 {4, 5, 6}} 

 

to the file bin.dat as signed integers and reads the array into the variable mydata.

Remarks:

READTB reads a binary table as produced by WRITETB. The data type is saved as part of the file.

 

READTB does not currently handle DELTAX, XOFFSET or Units.

See Also:

READA

READB

WRITEA

WRITEB

WRITETB