Read dat file line by line

Hello,

I am a bit stuck on something I am sure is easy to most.
I have a dat file that has a list of server names.

sentra
blue
red
willy
clawcrab

I need to take each server name from the dat file in a shell script and attempt to ssh to it to run a script on that server. So I guess I need to figure out how to assign each line to a string and then ssh to that string?

Not sure how to go about this... My shell scripting skills are very new to say the least. This would be using #!/bin/ksh

Thank you for any help.

Figured it out thanks!