Found logic to write to CP/M file