2.20: TQOPNB

TOCGroup 1TQOPNATQOPNTGroup 2A-ZGroup 1

OPEN-BINARY-DATA-FILE

Use TQOPNB to open a binary thermochemical data-file for reading by ChemApp.

Added for ChemApp version 3.3.0

Synopsis

FORTRAN: CALL TQOPNB(NAME,UNIT,NOERR)

C: tqopnb(name,unit,&noerr);

Pascal: tqopnb(name,unit,noerr);

Basic: Call tqopnb(name,unit,noerr)


Name Type Value set on call or returned
NAME CHARACTER Set to the filename of the binary data-file to open
UNIT CHARACTER Set to the unit number under which it should be opened
NOERR INTEGER Returns an error number

Use TQOPNB to open a thermochemical data-file in binary format for reading. If you are using ChemApp V3.3.0 or above, it is recommended that you use TQOPNB instead of TQOPEN. The advantage of TQOPNB over TQOPEN is that TQOPNB only opens the data-file if it already exists, otherwise it reports error no. 107.

The unit number under which the data-file needs to be opened should normally be determined in advance using a call to TQGIO with the option 'FILE'.

A file that has been opened using TQOPNB should subsequently be closed only with TQCLOS.

FORTRAN programmers may use the standard OPEN statement instead of TQOPNB, if ChemApp is used as a static library.

TQOPNB cannot be used to open ASCII thermochemical data-files. For this purpose, use TQOPNA instead.

Please see also chapter 1.11 for details and differences of thermochemical data-files formats.

See also

TQOPNA, TQOPNT, TQCLOS, TQRBIN, TQOPEN, Chapter 1.11

Examples

See TQRBIN


ChemApp Programmer's Manual, Edition 3.6© GTT-Technologies, 2003