Are you really trying to send the data to "notepad"?
Or are you trying to write the data to a text file that could subsequently be read in notepad?