DADiSP Worksheet Functions > Function Categories > Series Processing Language (SPL) > SPLWRITE

 

SPLWRITE

Purpose:

Writes SPL functions to an external ASCII file.

Syntax:

SPLWRITE("filename", start, end, all)

"filename"

-

A string. The target file name.

start

-

Optional. An integer. The function number, appearing in the function table, to begin writing. Defaults to 1.

end

-

Optional. An integer. The function number, appearing in the function table, to end writing. Defaults to -1 (all functions).

all

-

Optional. An integer, the type of SPL functions to include:

0:

Write standard SPL functions only (default)

1:

Write standard and hidden SPL functions

2:

Write hidden SPL functions only

Example:

splwrite("testdata.spl", 1, 25)

 

writes functions 1 through 25, as defined by the list of functions generated by the FUNCTIONS command, to the ASCII file, testdata.spl.

Remarks:

An SPL file is a simple ASCII text file you can create with any text editor. The file contains SPL functions that can be used just like any BUILTINS function.

See Also:

#INCLUDE

BUILTINS

FUNCTIONS

SPLCOMPILE

SPLCOMPILEALL

SPLLOAD

SPLREAD