The following code works very well from what I've tested, but I'm wondering if there's a different/better approach to parsing the HOSTS file for the hostnames inside the file. I know there is a HOSTS UDF by JScript, but if there are 5 hostsnames on a single line e.g. 127.0.0.1 www.text.com www.test.com www.example.com it will fail where mine doesn't. Thanks to anyone who offers improvements. Working code. #include <Array.au3> ; For _ArrayDisplay. Example() Func Example() Local $sData