write to driver

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

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1.1 Security: disk, process

# Syntax

write value to driver deviceName

# Params

- 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.

# Examples

write "test" & return to driver "/dev/cu.modem"

# Description

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

# Tags

# See

- **keyword:** 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