Reading and writing to a single digital pin

Why go through all the trouble with the software when you can do this?