If you are asking, can you replace the word "debug" with the name of your streamwriter variable, then yes you can, since streamwriter also has a WriteLine() method.