READ_T_O_CHECK_HEADER

Checks that the header in the currently open file has the specified type and version number. Returns 1 on success and 0 if errors occur.

Format

READ_T_O_CHECK_HEADER (Type, Version)

Prerequisites

READ_T_O_OPEN_FILE (Filename)

Arguments

 
Type
String denoting the expected type of TeimOrbit file to be read. Not case sensitive.
Version
Real number denoting the expected version in the TeimOrbit file.

Examples

The following examples illustrates the use of the READ_T_O_CHECK_HEADER function:
 
Function
READ_T_O_CHECK_HEADER(‘spr’, 4)
Result
1
 
Function
READ_T_O_CHECK_HEADER(‘spring’, 4)
Result
0
 
Function
READ_T_O_CHECK_HEADER(‘spr’, 1)
Result
0
 
Important:  
Filenames are case sensitive and parameters are not case sensitive.