replaced dat with txt in result format