There is no need to copy the string to a txt file. It is already provided as a txt file: http://www.eicar.org/85-0-Download.html
I know that I can download the file, I just like to copy the string and save it my self to the desktop to make sure the AV is working. However doing it either way the file shield on Avast is not picking it up.
it is just a text string, not a executable file
But in the past I have saved it as a .com file and as soon as I try to save the file avast detects the file and blocks it from saving, but now it is not picking the file up.

I did what the following page said to do to test the file shield, and it did not pick op the file.

https://www.avast.com/en-ca/faq.php?article=AVKB32