read and write into file test