
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-62 TPS1100-Version
1.30
FileId
in
Unique file-id returned by
Open.
iPos
in
The current byte file position to be set.
Must be greater 1 or FIL_EOF.
See Also
Open
Tell
Error Codes
RC_OK
operation successfully finished
RC_FIL_MEMORY_
FAILED
Error in internal memory allocation.
May be during open access of a non
existing directory.
device errors
RC_FIL_FAT_ERROR
fatal error in accessing the file
allocation table
RC_FIL_NO_
STORAGE_MEDIUM_
IN_DEVICE
No memory card inserted or it has
been removed and put in again.
Further file operations are not save.
file errors
RC_FIL_INVALID_
FILE_DESCR
illegal file descriptor used
BAS_FIL_ILLEGAL_
POSITION
illegal file position, hence < 1
BAS_FIL_ILL_OPER
illegal file operation, hence using it
on a file opened in sequential
OUTPUT or APPEND mode.
Example
Getting the length of a text file.
DIM FileId
A
S
FileId
DIM nLen
AS Integer
Open ( "A:\\test.txt", "INPUT", FileId, 1 )
Seek (FileId , FIL_EOF)
Tell (FileId , nLen)
'one more than the length
nLen = nLen - 1
'the length of the file
Close( FileId )
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...