The best you can do is pipe a string to a .txt document then pipe it again to a wordpad document. You should be able to do that easily with file and open()