reference output in text files