Open splatteredbits opened 7 years ago
Add answer to http://stackoverflow.com/questions/12187388/how-to-read-a-specific-line-in-a-text-file when finished.
Decreasing priority. Current project focus is releasing v1.0. I'm prioritizing all issues that won't be part of the 1.0 released as trivial. They will be re-prioritized after the 1.0 release.
Here, I knocked this up in about an hour - most of that was playing around with regex!! :) https://github.com/My-Random-Thoughts/Various-Code/blob/master/Get-HostsFile.ps1
Imported from Bitbucket issue #48, created on 2015-12-02
Create a function that will parse the hosts file and return objects for each line. Each object should have IPAddress, HostName, Comments properties.
bb-issue-48