I need to load a file containing IP address and hostname into an array so that I can convert IP addresses into hostnames when parsing a log file. Is it permissable to use the IP address as the array subscript?
My data file named 'hosttable' :
10.1.2.3 host1.com
20.2.3.4 host2.com
30.3.4.5...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.