2.19: TQOPNA | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
TOC | Group 1 | TQWSTR | TQOPNB | Group 2 | A-Z | Group 1 |
Use TQOPNA to open a thermochemical data-file in ASCII format for reading by ChemApp.
Added for ChemApp version 3.3.0
FORTRAN: CALL TQOPNA(NAME,UNIT,NOERR)
C: tqopna(name,unit,&noerr)
;
Pascal: tqopna(name,unit,noerr)
;
Basic: Call tqopna(name,unit,noerr)
Name | Type | Value set on call or returned |
NAME | CHARACTER | Set to the filename of the ASCII data-file to open |
UNIT | CHARACTER | Set to the unit number under which it should be opened |
NOERR | INTEGER | Returns an error number |
Use TQOPNA to open a thermochemical data-file in ASCII format for reading. If you are using ChemApp V3.3.0 or above, it is recommended that you use TQOPNA instead of TQOPEN. The advantage of TQOPNA over TQOPEN is that TQOPNA 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 TQOPNA should subsequently be closed only with TQCLOS.
FORTRAN programmers may use the standard OPEN
statement instead of
TQOPNA, if ChemApp is used as a static library.
TQOPNA cannot be used to open binary thermochemical data-files. For this purpose, use TQOPNB instead. To open ASCII files for writing, for instance to store the output of TQCEL, TQMAPL, and TQSHOW, use TQOPEN instead.
Please also see chapter 1.11 for details and differences of thermochemical data-files formats.
TQOPNB, TQOPNT, TQCLOS, TQRFIL, TQOPEN, Chapter 1.11
See TQRFIL
ChemApp Programmer's Manual, Edition 3.6 | © GTT-Technologies, 2003 |