modified the code and added read/write functions

(1)Modified the prompt message in test.sh
(2)Added read / write functions for text file's operating