reads text from files for record terminals