Send files to the printer

Someone knows a function in Processing or C language that sends a file to the printer (like a "copy [file.*] LPT1" in DOS)?

If that's possible to ma this with Processing, would be insteresting, because I'll can create a beautiful interface to send data to my Arduino. :slight_smile:

But if not possible, a little program in C will solve my problem... I just need to know how write this function with the printer.

processing is written in java. there's probably a way to execute native java code and probably some way to do the file print with java.

After search about my idea is to do a interface write in java or processing, and in this program call an executable file (.bat for example) that send the file wanted to printer. But I don't know how to send a file to printer =/

I finally found the solution!
I only wrote a simple code in notepad:

@echo
cls
type filename.txt > LPT1

and save it in .bat format :slight_smile:

thanks