TxtFile abstraction