Cicode Programming Reference > Cicode Function Categories > Device Functions Introduction > DevWriteLn


Writes a string to a device. If the device is free-format, the data is written to the device, followed by a newline character. If the device is record-based, a new record is appended to the device and the data is written to this record. The record pointer is then moved to the next record.


DevWriteLn(hDev, sData)


The device handle, returned from the DevOpen() function. The device handle identifies the table where all data on the associated device is stored.


The data to write, as a string.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

DevOpen, DevWrite


/* Write PV123 to the device followed by a newline character */

See Also

Device Functions