Appending string at the end of the file

Hello, I wanted to append 'XYZ' at the end of the text file. How can i do this?

I searched the forums and i am not getting what i want. Any help is highly appreciated. Thanks

echo XYZ >> myfile.txt

Is that what you want?

Thank you. this is want i want. Your help is appreciated.