To keep your HTC text messages and contacts safer, you would want to save them on computer. But we can't do that just via a USB cable, we need an android file manager to help.
I found this guide is really helpful, don't , just have a try.
Step 1: Connect Samsung Phone to PC and Run the Problem
Tips: If this is the first time your samsung phone connecting with the problem, you'll need to enable USB debugging first. You just need to follow the guide to open the USB debugging and install USB driver on your cell phone.
Step 2: Select and Check Contacts and Start Export
Now you can click "Contacts" on the top to view all of your samsung phone contacts, select and check those you want to backup, and just click "Backup" to start the export.
That's all!