open txt and cfg file