read record from txt file