Binary file items are supported from S_TOOLS-STx version 3.7.x (r603). The following features are available:
The S_TOOLS-STx binary file contains no metadata describing the section data! Metadata, if needed, must be stored elsewhere (e.g. in the DataSet).
The S_TOOLS-STx binary file has the following format:
The binary file section header is 12 bytes long and contains three 32bit integer values.
header[0] = the binary file type
header[1] = the number of rows
header[2] = the number of columns
The binary data is stored directly after the binary header. Note that each column is stored as a vector. The column vectors are stored one after the other.

The following script demonstrates the use of a binary file item.
[macro binary_file_example] // // create binary file item // deleting existing contents // #f := new file * 'binary_file_example.stb' /Binary /Delete if '$#f[?]' != 'file' em -1 ; $#mac - Failed to create #f // // save vector data to section 0 // $#f save $(eval fill(10,1,1)) 0 // // save matrix data to section 1 // #matrix := eval init(10,10,0) showitem $#matrix $#f save $#matrix 1 if '$rc' > 0 em $rc ; SAVE failed ($EMSG) // // save matrix data to section 2 // $#f save $(eval init(10,10,1)) 2 // // list sections in binary file // #st := new table * if '$#st[?]' != 'table' em -1 ; $#mac - Failed to create #st if '$($#f list $#st)' > 0 em $rc ; $#mac - LIST failed ($EMSG) showitem $#st // // delete section 1 // $#f save * 1 // // load matrix data from section 1 (was section 2) // #t := new table * 10 /P if '$#t[?]' != 'table' em -1 ; $#mac - Failed to create #t if '$($#f load $#t 1)' > 0 em $rc ; $#mac - LOAD failed ($EMSG) showitem $#t // // clean up // delete $#f $#matrix $#st $#t exit