in reply to Accessing parallel ports

tumoheat:

but I cannot get my code below to work

Perhaps if you'd give some details, someone could help you. When it "doesn't work", precisely what do you mean? After reviewing Ask questions the smart way, I know what I mean. Why don't you? and How (Not) To Ask A Question, you can update your node and probably get a response you can work with.

...roboticus

When your only tool is a hammer, all problems look like your thumb.