read template from txt