fbinnumrec
Returns the number of unformatted sequential Fortran records in a binary file.
Prototype
function fbinnumrec ( path [1] : string ) return_val [1] : integer
Arguments
pathPathname of file
Description
This function returns the number of records in a Fortran unformatted sequential binary file.
It was updated in version 4.3.0 in order to allow reads into files bigger than 2 GB. This change allows you to access records that occur past the 2 GB point in the file, but not to read into variables that would be larger than 2 GB.
See Also
Examples
Example 1
Determine the number of records on a file created opening the file via the fortran statement: open(10, "foo.binary", form="unformatted")
nrec = fbinnumrec("foo.binary") ; nrec is scalar integer