Test Reader and Writer for read file and write file