
GeoBASIC Reference Manual
2.GeoBasic Constructs
2-54 TPS1100-Version
1.30
DIM iLen
AS Integer
ON ERROR RESUME NEXT
Open("A:\\test.dat", "Input", FileId, 0 )
'read 10 characters from current file pointer
iLen = 10
Input( FileId, iFileinput, iLen )
IF (iLen <> 10) THEN
'Error or EOF occured, or EOL reached earlier
END IF
Close(FileId)
2.12.6 Print
Description
Write a string to a file.
Declaration
Print( byVal FileId AS FileId,
byVal sData
AS String255 )
Remarks
The function writes a string to the file specified by
FileId
. The
actual string determines the numbers of characters which will be
written to the file. The printed string will include the line
terminator at the end, which will be in any case
"CR/LF".
Note
The file must have been opened in access modes "Output"
or "Append".
Each Print prints the line terminator to the file
automatically.
Parameters
FileId
in
Unique file-id returned by
Open.
sData
in
The data to be written (of the specified
type).
See Also
Open
Close
Input
Error Codes
RC_OK
data written
Содержание 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 ...