
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-64 TPS1100-Version
1.30
Example
Opens a file in current directory on default drive. Inputs data and
examines if EOF has been reached.
DIM FileId
AS FileId
DIM sIn
AS String255
DIM nLen
AS Integer
Open ( "test.txt", "INPUT", FileId, 1)
DO WHILE NOT Eof(FileId)
nLen = 255
Input(FileId, sIn, nLen)
'process in-data
LOOP
2.12.12 CurDir$
Description
Get current directory.
Declaration
CurDir$( szcurDir AS FileName )
Remarks
The procedure gets the absolute path of the current directory.
Note
Since on TPS only memory card device A:\\ will be
supported only paths with drive A: will be returned.
Parameters
szcurDir
out
The current directory and drive.
See Also
ChDir,
MkDir
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
Содержание 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 ...