resolve the read txt file, use java 1.6 library