
|
<<
Index
>>
|
FutureBasic 5
|
write field
|
|
statement
|
|
Syntax:
write field[#] deviceID, handle
Description:
Use this statement to write the contents of the relocatable block specified by handle
to the open file or serial port specified by deviceID
, in a format suitable for input by the read field
statement.
write field
starts writing at the current "file
mark" position. If first writes a 4-byte long-integer which indicates
the size of the block; following this, it writes the contents of the
block itself.
Note:
If you want to write only the block's contents to the file (without the 4-byte length indicator), use the write file
statement instead:
write file# deviceID,[ handle ],fn GetHandleSize( handle )
See Also:
read field; write file; open