write to driver

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
write <value> to driver <deviceName>
Summary

Sends data to a device that has been opened with the open driver command.

Introduced1.1.1
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
value
deviceName

The name of a device driver that's installed on the system and that you have previously opened with the open driver command.

Example
write "test" & return to driver "/dev/cu.modem"
Values
NameTypeDescription
The result

The device to write to must be opened first with the open driver command, and the mode the device was opened in must be either write or update. If the device is not open or is open read-only, the result function is set to "File is not open for write.".

RelatedKeyword: COMn:, real8, int1, int4, real4, int2, LPT1:, printer:, modem:
Command: write to file, open driver, close driver, read from driver, write to process, write to socket
Function: driverNames, result
Control Structure: function
Glossary: command, peripheral device
Securitydisk, process
Description

Use the write to driver command to control a peripheral device or send data through it.

Tagsnetworking