I am using fprintf to write to a text file. Since a text file only displays plain text I was looking to see about printing to Microsoft word and putting failed text in red. I know you can do fprintf(2, 'string') and the text will appear red in the command window. But when you write to a specific file such as MyFile, fprintf(2, MyFile, 'string') errors out. Is there a certain format to do this? Thanks.