writing read.out