write text (input)
read text (output)