Cicode Programming Reference > Cicode Function Categories > File Functions Introduction > FilePrint

FilePrint

Prints a file on a device.

Syntax

FilePrint(Devicename, Filename)

Devicename:

The name of the target device.

Filename:

The name of the file to print on the device.

Return Value

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

Related Functions

FileOpen, FileClose, FileWrite, FileWriteLn

Example

! Print a data file on the system printer.
FilePrint("Printer_Device","Data.txt");

See Also

File Functions