Add method to read in from file

Add ability to read in hosts from a file not just a string.