2.22: TQCLOS

TOCGroup 1TQOPNTTQGTRHGroup 2A-ZGroup 1

CLOSE-FILE

Use TQCLOS to close a file that has been previously opened using TQOPNA, TQOPNB, TQOPNT, or TQOPEN.

Synopsis

FORTRAN: CALL TQCLOS(UNIT,NOERR)

C: tqclos(unit,&noerr);

Pascal: tqclos(unit,noerr);

Basic: Call tqclos(unit,noerr)


Name Type Value set on call or returned
UNIT CHARACTER Set to the unit number under which the data-file was previously opened using TQOPEN
NOERR INTEGER Returns an error number

TQCLOS is used to make sure that a file previously opened with TQOPNA, TQOPNB, TQOPNT, or TQOPEN is closed correctly through its associated FORTRAN unit number.

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

See also

TQOPNA, TQOPNB, TQOPNT, TQOPEN

Examples

See TQRFIL


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