Introduction: Writing a Variable to a Arduino Port

I've just spent an hour searching the internet for advice for writing a variable to an Arduino Port. Here is working code that not only writes a varible to a port but also shows that it is possible to write non-binary to the port.