open txt and working with it