Code:
dim filenumber as byte
FileNumber = freefile

Open "LPT1:" for output as #FileNumber
print #filenumber, "Hello"
close #filenumber
The "LPT1:" bit is the proper string that identifies the port, it is not interpreted as a filename, just in case you were wondering.