write testing.txt $1-

You missing one part of the text.