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