read a from clipboard and write b