
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-49
Declaration
Open( byVal sFileName AS FileName,
byVal sMode
AS String20,
FileId
AS FileId,
byVal iRecLen
AS Integer )
Remarks
The Function attempts to open the file given in
sFileName
with
mode
sMode
. If the procedure is successful a valid file descriptor
is returned. This file descriptor is used for all successive
operations on the opened file. The device of the PC-Card, which is
also the default device, is
"A:"
. An Open will not change the
default device nor the default directory.
Directories included in
sFileName
must exist already. The
FileId
will be determined automatically. There is no need at all
to handle the value of
FileId
directly! No white spaces
(spaces, tabs, etc.) may be included in
sFileName.
Note
If the device is not mounted, an error code will be
returned.
The
iRecLen
parameter will be ignored, hence it has no
effect at all. Its usage is reserved for future purposes.
Access modes may not be mixed, hence opening for
Input
and
Output
does not work. A maximum of 20
files can be opened simultaneously.
Parameters
sFileName
in
File path and name of the file to be
opened
(
"A:\\dir\\filename.ext"
, up
to 100 characters).
sMode
in
Access mode
−
"Input"
- Opens a text file for
reading. The file must exist.
−
"Output"
- Creates a text new file
for writing or truncates it to zero if it
Содержание 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 ...