CRLF$
= CHR$(13) + CHR$(10) ' end current print line and starts new lineFF$
= CHR$(12) ' end current print line and finish printingPrinterConnect
= _OPENCLIENT("TCP/IP:9100:***.***.***.***") 'replace astrix with your printers IP address. opens a connection to your printer
printstring1$ = "this is a printed line" + CRLF$
INPUT "please enter the name of the file you want to print>", FileName$
PrintString$ = LinePrint$ + CRLF$
PUT #PrinterConnect
, , PrintString$:
PUT #PrinterConnect
, , FF$