Make selection output to file