
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-52 TPS1100-Version
1.30
allocation table.
RC_FIL_ILLEGAL_
DRIVE
Illegal drive.
RC_FIL_WRITE_TO_
MEDIUM_FAILED
Unspecified error on writing to a
file.
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
file descriptor is not valid. May
occur e.g. if closed twice.
Example
Close a file. The
fileId
has to be returned (by
Open
):
DIM FileId AS FileId
Open("A:\\test.dat", "Output", FileId, 0 )
'do some work
Close( FileId )
2.12.5 Input
Description
Read a string from file.
Declaration
Input( byVal FileId
AS FileId,
sData
AS String255,
iSize
AS Integer )
Remarks
The functions read a string from the file identified by
FileId
.
iSize
determines how many characters have to be read from the
file at a maximum. If the line terminator occurs before
iSize
characters has been read, than
sData
will contain only characters
up to the terminator. The current file pointer will be set to the
position after the terminator. The line terminator will never be
included in the resulting string. The line terminator will be
expected as
"CR/LF".
End-of-file (EOF) can be examined by
Содержание 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 ...