Added file writing functions, but they don't yet do any work on the parallel port.