The example you gave using curly brackets works just fine exactly the way you posted it.
Another way is adding literally exec > output.txt
as the second line (after the shebang) in your script. All subsequent output in the script will be redirected to the file.