write data do stdout