saves the result as a OUTPUT.txt