fbinrecread

This function reads records from binary files written using UNFORMATTED SEQUENTIAL access.


Synopsis

	function fbinrecread(
		path [1] : string,
		rec_num [1] : integer,
		dims [*] : integer,
		type [1] : string
	)

Arguments

path
pathname to binary file
rec_num
record number to read from the file beginning at 0
dims
a singly dimensioned array of integer values that describe how to shape the data, or -1 if the size of the record is unknown.
type
string name of the data type of the record.

Description

fbinrecread reads the rec_num record of the file path and shapes it according to the dimension sizes in parameter. The data type of the record is specified by the parameter type. If the size and dimensionality of the record are unknown the value -1 can be used for parameter dims. In this case fbinrecread will read in the entire record as a singly dimensioned array.

Example

Example pending

Reference Manual Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?


$Revision: 1.9 $ $Date: 1999/03/19 15:32:26 $