Test code for read/write/delete file