simple implement of reading txt file